Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit d2f5df7

Browse files
author
Ben Keith
committed
Use Jenkins BUILD_BRANCH env for tag in build if present
1 parent d467954 commit d2f5df7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/build.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
77
. $SCRIPT_DIR/common.sh
88

99
AGENT_IMAGE_NAME="quay.io/signalfuse/signalfx-agent"
10-
TAG=${TAG:-$USER}
10+
11+
if [ -n "${BUILD_BRANCH}" ]; then
12+
TAG=${TAG:-$BUILD_BRANCH}
13+
else
14+
TAG=${TAG:-$USER}
15+
fi
1116

1217
do_docker_build ${AGENT_IMAGE_NAME}:${TAG} $SCRIPT_DIR/../Dockerfile
1318

0 commit comments

Comments
 (0)