conformance-jenkins.sh 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env bash
  2. # Copyright 2016 The Kubernetes Authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # Script executed by jenkins to run node conformance test against gce
  16. # Usage: test/e2e_node/jenkins/conformance-node-jenkins.sh <path to properties>
  17. set -e
  18. set -x
  19. : "${1:?Usage test/e2e_node/jenkins/conformance-node-jenkins.sh <path to properties>}"
  20. . "${1}"
  21. make generated_files
  22. WORKSPACE=${WORKSPACE:-"/tmp/"}
  23. ARTIFACTS=${WORKSPACE}/_artifacts
  24. TIMEOUT=${TIMEOUT:-"45m"}
  25. mkdir -p "${ARTIFACTS}"
  26. go run test/e2e_node/runner/remote/run_remote.go --test-suite=conformance \
  27. --logtostderr --vmodule=*=4 --ssh-env="gce" --ssh-user="$GCE_USER" \
  28. --zone="$GCE_ZONE" --project="$GCE_PROJECT" --hosts="$GCE_HOSTS" \
  29. --images="$GCE_IMAGES" --image-project="$GCE_IMAGE_PROJECT" \
  30. --image-config-file="$GCE_IMAGE_CONFIG_PATH" --cleanup="$CLEANUP" \
  31. --results-dir="$ARTIFACTS" --test-timeout="$TIMEOUT" \
  32. --test_args="--kubelet-flags=\"$KUBELET_ARGS\"" \
  33. --instance-metadata="$GCE_INSTANCE_METADATA" \
  34. --system-spec-name="$SYSTEM_SPEC_NAME" \
  35. --extra-envs="$EXTRA_ENVS"