aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/jenkins
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-02-29 15:01:54 -0800
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-02-29 15:01:54 -0800
commit8ba6a6b3211efbb90355239899cda7a08d8ffbe2 (patch)
tree74064c1ac1335c2c6acd24e24086b7a9185e6885 /tools/jenkins
parentef7e42660ca1111fdd9841b21f647c89fa186f63 (diff)
parente1dd18a945ea11d1eba412ea0483b3996a222c3b (diff)
Merge pull request #5402 from sreecha/stress_test_scripts
Stress test scripts to launch in GKE
Diffstat (limited to 'tools/jenkins')
-rwxr-xr-xtools/jenkins/build_interop_stress_image.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/jenkins/build_interop_stress_image.sh b/tools/jenkins/build_interop_stress_image.sh
index 92f2dab5e3..501dc5b7ca 100755
--- a/tools/jenkins/build_interop_stress_image.sh
+++ b/tools/jenkins/build_interop_stress_image.sh
@@ -35,6 +35,8 @@ set -x
# Params:
# INTEROP_IMAGE - name of tag of the final interop image
+# INTEROP_IMAGE_TAG - Optional. If set, the created image will be tagged using
+# the command: 'docker tag $INTEROP_IMAGE $INTEROP_IMAGE_REPOSITORY_TAG'
# BASE_NAME - base name used to locate the base Dockerfile and build script
# TTY_FLAG - optional -t flag to make docker allocate tty
# BUILD_INTEROP_DOCKER_EXTRA_ARGS - optional args to be passed to the
@@ -77,6 +79,7 @@ CONTAINER_NAME="build_${BASE_NAME}_$(uuidgen)"
$BASE_IMAGE \
bash -l /var/local/jenkins/grpc/tools/dockerfile/$BASE_NAME/build_interop_stress.sh \
&& docker commit $CONTAINER_NAME $INTEROP_IMAGE \
+ && ( if [ -n "$INTEROP_IMAGE_REPOSITORY_TAG" ]; then docker tag -f $INTEROP_IMAGE $INTEROP_IMAGE_REPOSITORY_TAG ; fi ) \
&& echo "Successfully built image $INTEROP_IMAGE")
EXITCODE=$?