mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Add control variables to Jenkins E2E script
This commit is contained in:
parent
7882d1eeb2
commit
7cc25842fa
@ -92,6 +92,11 @@ export KUBE_GKE_NETWORK=${E2E_NETWORK}
|
|||||||
export PATH=${PATH}:/usr/local/go/bin
|
export PATH=${PATH}:/usr/local/go/bin
|
||||||
export KUBE_SKIP_CONFIRMATIONS=y
|
export KUBE_SKIP_CONFIRMATIONS=y
|
||||||
|
|
||||||
|
# E2E Control Variables
|
||||||
|
export E2E_UP="${E2E_UP:-true}"
|
||||||
|
export E2E_TEST="${E2E_TEST:-true}"
|
||||||
|
export E2E_DOWN="${E2E_DOWN:-true}"
|
||||||
|
|
||||||
if [[ ${KUBE_RUN_FROM_OUTPUT:-} =~ ^[yY]$ ]]; then
|
if [[ ${KUBE_RUN_FROM_OUTPUT:-} =~ ^[yY]$ ]]; then
|
||||||
echo "Found KUBE_RUN_FROM_OUTPUT=y; will use binaries from _output"
|
echo "Found KUBE_RUN_FROM_OUTPUT=y; will use binaries from _output"
|
||||||
cp _output/release-tars/kubernetes*.tar.gz .
|
cp _output/release-tars/kubernetes*.tar.gz .
|
||||||
@ -142,14 +147,20 @@ fi
|
|||||||
export E2E_REPORT_DIR=${WORKSPACE}
|
export E2E_REPORT_DIR=${WORKSPACE}
|
||||||
|
|
||||||
### Set up ###
|
### Set up ###
|
||||||
go run ./hack/e2e.go ${E2E_OPT} -v --down
|
if [[ "${E2E_UP,,}" == "true" ]]; then
|
||||||
go run ./hack/e2e.go ${E2E_OPT} -v --up
|
go run ./hack/e2e.go ${E2E_OPT} -v --down
|
||||||
go run ./hack/e2e.go -v --ctl="version --match-server-version=false"
|
go run ./hack/e2e.go ${E2E_OPT} -v --up
|
||||||
|
go run ./hack/e2e.go -v --ctl="version --match-server-version=false"
|
||||||
|
fi
|
||||||
|
|
||||||
### Run tests ###
|
### Run tests ###
|
||||||
# Jenkins will look at the junit*.xml files for test failures, so don't exit
|
# Jenkins will look at the junit*.xml files for test failures, so don't exit
|
||||||
# with a nonzero error code if it was only tests that failed.
|
# with a nonzero error code if it was only tests that failed.
|
||||||
go run ./hack/e2e.go ${E2E_OPT} -v --test --test_args="${GINKGO_TEST_ARGS}--ginkgo.noColor" || true
|
if [[ "${E2E_TEST,,}" == "true" ]]; then
|
||||||
|
go run ./hack/e2e.go ${E2E_OPT} -v --test --test_args="${GINKGO_TEST_ARGS}--ginkgo.noColor" || true
|
||||||
|
fi
|
||||||
|
|
||||||
### Clean up ###
|
### Clean up ###
|
||||||
go run ./hack/e2e.go ${E2E_OPT} -v --down
|
if [[ "${E2E_DOWN,,}" == "true" ]]; then
|
||||||
|
go run ./hack/e2e.go ${E2E_OPT} -v --down
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user