File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 2828 - MAIN_BRANCH=v9.4.1
2929 - TAGCACHE_FILE=tagcache
3030 - RELEASE=r1
31+ - BASE_MQ_LOCKED=false
3132
3233go_import_path : " github.com/ibm-messaging/mq-container"
3334
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ set -e
1919if [ " $( uname -m) " = " x86_64" ] ; then export ARCH=" amd64" ; else export ARCH=$( uname -m) ; fi
2020
2121if [ " $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
5256if [ -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
You can’t perform that action at this time.
0 commit comments