Skip to content

Commit afb70d9

Browse files
Pradip RoutaGitHub Enterprise
authored andcommitted
Added changes to push the images to artifactory during locking period (#778)
1 parent 835a177 commit afb70d9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ env:
2828
- MAIN_BRANCH=v9.4.1
2929
- TAGCACHE_FILE=tagcache
3030
- RELEASE=r1
31+
- BASE_MQ_LOCKED=false
3132

3233
go_import_path: "github.com/ibm-messaging/mq-container"
3334

travis-build-scripts/run.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ set -e
1919
if [ "$(uname -m)" = "x86_64" ] ; then export ARCH="amd64" ; else export ARCH=$(uname -m) ; fi
2020

2121
if [ "$PUSH_MANIFEST_ONLY" = true ] ; then
22+
if [ "$BASE_MQ_LOCKED" = true ] ; then
23+
printf '\nNot pushing manifest to Artifactory because the stream is locked.\n'
24+
exit 0
25+
fi
2226
echo 'Retrieving remote tagcache' && echo -en 'travis_fold:start:retrieve-tag-cache\\r'
2327
./travis-build-scripts/artifact-util.sh -c ${CACHE_PATH} -u ${REPOSITORY_USER} -p ${REPOSITORY_CREDENTIAL} -f cache/${TAGCACHE_FILE} -l ./.tagcache --get
2428
echo -en 'travis_fold:end:retrieve-tag-cache\\r'
@@ -51,6 +55,10 @@ echo -en 'travis_fold:end:docker-downgrade\\r'
5155
## Push images
5256
if [ -z "$BUILD_INTERNAL_LEVEL" ] ; then
5357
if [ "$BUILD_ALL" = true ] ; then
58+
if [ "$BASE_MQ_LOCKED" = true ] ; then
59+
printf '\nNot pushing or writing images to Artifactory because the stream is locked.\n'
60+
exit 0
61+
fi
5462
./travis-build-scripts/push.sh developer
5563
./travis-build-scripts/push.sh production
5664
fi

0 commit comments

Comments
 (0)