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