From fd14fa5c48e55a7d50dc0b5203aceb81a995823c Mon Sep 17 00:00:00 2001 From: gmarek Date: Wed, 30 Sep 2015 16:03:06 +0200 Subject: [PATCH] Add first attempt of Kubemark config to jenkins/e2e.sh --- hack/jenkins/e2e.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hack/jenkins/e2e.sh b/hack/jenkins/e2e.sh index ac88834cf0e..cd59986a855 100755 --- a/hack/jenkins/e2e.sh +++ b/hack/jenkins/e2e.sh @@ -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 @@ -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.