Skip to content

Commit

Permalink
Merge pull request #14825 from gmarek/fix-jenkins
Browse files Browse the repository at this point in the history
Add first attempt of Kubemark config to jenkins/e2e.sh
  • Loading branch information
Marek Grabowski committed Sep 30, 2015
2 parents 28d7141 + fd14fa5 commit bf32ad4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions hack/jenkins/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,17 @@ case ${JOB_NAME} in
${GCE_SLOW_TESTS[@]:+${GCE_SLOW_TESTS[@]}} \
)"}
;;

kubernetes-kubemark)
: ${E2E_CLUSTER_NAME:="kubernetes-kubemark"}
: ${E2E_NETWORK:="kubernetes-kubemark"}
: ${PROJECT:="k8s-jenkins-kubemark"}
: ${E2E_UP:="true"}
: ${E2E_DOWN:="true"}
: ${E2E_TEST:="false"}
: ${USE_KUBEMARK:="true"}
: ${NUM_MINIONS:="10"}
;;
esac

# AWS variables
Expand Down Expand Up @@ -739,6 +750,18 @@ if [[ "${E2E_TEST,,}" == "true" ]]; then
fi
fi

### Start Kubemark ###
if [[ "${USE_KUBEMARK:-}" == "true" ]]; then
./test/kubemark/start-kubemark.sh
./test/kubemark/run-scalability-test.sh && exitcode=0 || exitcode=$?
if [[ "${E2E_PUBLISH_GREEN_VERSION:-}" == "true" && ${exitcode} == 0 && -n ${githash:-} ]]; then
echo "publish githash to ci/latest-green.txt: ${githash}"
echo "${githash}" > ${WORKSPACE}/githash.txt
gsutil cp ${WORKSPACE}/githash.txt gs://kubernetes-release/ci/latest-green.txt
fi
./test/kubemark/stop-kubemark.sh
fi

# TODO(zml): We have a bunch of legacy Jenkins configs that are
# expecting junit*.xml to be in ${WORKSPACE} root and it's Friday
# afternoon, so just put the junit report where it's expected.
Expand Down

0 comments on commit bf32ad4

Please sign in to comment.