diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-12-01 13:35:04 +0100 |
---|---|---|
committer | Jose Lausuch <jose.lausuch@ericsson.com> | 2016-12-01 12:52:31 +0000 |
commit | 0c737143798a6c9056bb75875c747521fdf72840 (patch) | |
tree | c6f1f5721db4b519a07f75bb0a374fde470affdf /jjb/releng/opnfv-docker.sh | |
parent | bb77524cacd9fa4afe7c96b560534f6cc927789b (diff) |
Add possibility to build a Release Docker image
New flag that if it's not empty, it will build the
image with the given tag instead of using master/stable.
These release builds will need to be triggered manually
by a Jenkins user with rights to build jobs.
The respective projects take the responsability to
build the release docker image whenever they
consider it is the right time.
Change-Id: I49b087e80eb134b8b3ddef8399f61eeac9b29619
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'jjb/releng/opnfv-docker.sh')
-rw-r--r-- | jjb/releng/opnfv-docker.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jjb/releng/opnfv-docker.sh b/jjb/releng/opnfv-docker.sh index e0fbb7564..6f8d81a91 100644 --- a/jjb/releng/opnfv-docker.sh +++ b/jjb/releng/opnfv-docker.sh @@ -66,7 +66,13 @@ echo "Current branch: $branch" if [[ "$branch" == "master" ]]; then DOCKER_TAG="latest" else - DOCKER_TAG="stable" + if [[ "$RELEASE_VERSION" != "" ]]; then + release=$(echo $branch|sed 's/.*\///') + DOCKER_TAG=${release}.${RELEASE_VERSION} + # e.g. colorado.1.0, colorado.2.0, colorado.3.0 + else: + DOCKER_TAG="stable" + fi fi # Start the build |