Skip to content

Commit 7480ba5

Browse files
adding support for TAG environment variable (GoogleCloudPlatform#82)
1 parent fb93bee commit 7480ba5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

jenkins_build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ set -eu
44

55
RUNTIME_NAME="python"
66

7-
CANDIDATE_NAME=`date +%Y-%m-%d_%H_%M`
7+
if [ -z "${TAG}" ] ; then
8+
TAG=`date +%Y-%m-%d_%H_%M`
9+
fi
10+
11+
CANDIDATE_NAME="${TAG}"
812
echo "CANDIDATE_NAME:${CANDIDATE_NAME}"
913

1014
if [ -z "${DOCKER_NAMESPACE+set}" ] ; then

0 commit comments

Comments
 (0)