mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 13:42:02 +00:00
Clean up artifacts variables in hack scripts
This commit is contained in:
@@ -39,9 +39,9 @@ retry go get github.com/cespare/prettybench
|
||||
export KUBE_RACE=" "
|
||||
# Disable coverage report
|
||||
export KUBE_COVER="n"
|
||||
export ARTIFACTS_DIR=${WORKSPACE}/_artifacts
|
||||
export ARTIFACTS=${ARTIFACTS:-"${WORKSPACE}/artifacts"}
|
||||
|
||||
mkdir -p "${ARTIFACTS_DIR}"
|
||||
mkdir -p "${ARTIFACTS}"
|
||||
cd /go/src/k8s.io/kubernetes
|
||||
|
||||
./hack/install-etcd.sh
|
||||
@@ -49,5 +49,5 @@ cd /go/src/k8s.io/kubernetes
|
||||
# Run the benchmark tests and pretty-print the results into a separate file.
|
||||
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=. -benchmem" \
|
||||
| tee \
|
||||
>(prettybench -no-passthrough > ${ARTIFACTS_DIR}/BenchmarkResults.txt) \
|
||||
>(go run test/integration/benchmark/jsonify/main.go ${ARTIFACTS_DIR}/BenchmarkResults_benchmark_$(date -u +%Y-%m-%dT%H:%M:%SZ).json || cat > /dev/null)
|
||||
>(prettybench -no-passthrough > ${ARTIFACTS}/BenchmarkResults.txt) \
|
||||
>(go run test/integration/benchmark/jsonify/main.go ${ARTIFACTS}/BenchmarkResults_benchmark_$(date -u +%Y-%m-%dT%H:%M:%SZ).json || cat > /dev/null)
|
||||
|
@@ -36,8 +36,10 @@ go get -u github.com/jstemmer/go-junit-report
|
||||
|
||||
# Enable the Go race detector.
|
||||
export KUBE_RACE=-race
|
||||
# Produce a JUnit-style XML test report for Jenkins.
|
||||
export KUBE_JUNIT_REPORT_DIR=${WORKSPACE}/_artifacts
|
||||
# Set artifacts directory
|
||||
export ARTIFACTS=${ARTIFACTS:-"${WORKSPACE}/artifacts"}
|
||||
# Produce a JUnit-style XML test report
|
||||
export KUBE_JUNIT_REPORT_DIR="${ARTIFACTS}"
|
||||
# Save the verbose stdout as well.
|
||||
export KUBE_KEEP_VERBOSE_TEST_OUTPUT=y
|
||||
|
||||
|
@@ -39,9 +39,10 @@ retry go get github.com/jstemmer/go-junit-report
|
||||
export KUBE_RACE=-race
|
||||
# Disable coverage report
|
||||
export KUBE_COVER="n"
|
||||
# Produce a JUnit-style XML test report for Jenkins.
|
||||
export KUBE_JUNIT_REPORT_DIR=${WORKSPACE}/artifacts
|
||||
export ARTIFACTS_DIR=${WORKSPACE}/artifacts
|
||||
# Set artifacts directory
|
||||
export ARTIFACTS=${ARTIFACTS:-"${WORKSPACE}/artifacts"}
|
||||
# Produce a JUnit-style XML test report
|
||||
export KUBE_JUNIT_REPORT_DIR="${ARTIFACTS}"
|
||||
# Save the verbose stdout as well.
|
||||
export KUBE_KEEP_VERBOSE_TEST_OUTPUT=y
|
||||
export KUBE_INTEGRATION_TEST_MAX_CONCURRENCY=4
|
||||
|
@@ -31,10 +31,10 @@ retry() {
|
||||
|
||||
export PATH=${GOPATH}/bin:${PWD}/third_party/etcd:/usr/local/go/bin:${PATH}
|
||||
|
||||
# Produce a JUnit-style XML test report
|
||||
export KUBE_JUNIT_REPORT_DIR=${WORKSPACE}/artifacts
|
||||
# Set artifacts directory
|
||||
export ARTIFACTS_DIR=${WORKSPACE}/artifacts
|
||||
export ARTIFACTS=${ARTIFACTS:-"${WORKSPACE}/artifacts"}
|
||||
# Produce a JUnit-style XML test report
|
||||
export KUBE_JUNIT_REPORT_DIR="${ARTIFACTS}"
|
||||
|
||||
export LOG_LEVEL=4
|
||||
|
||||
|
Reference in New Issue
Block a user