diff options
-rwxr-xr-x | cje-production/mbscripts/mb110_tagBuildInputs.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cje-production/mbscripts/mb110_tagBuildInputs.sh b/cje-production/mbscripts/mb110_tagBuildInputs.sh index ea65c6cff..72db0e10d 100755 --- a/cje-production/mbscripts/mb110_tagBuildInputs.sh +++ b/cje-production/mbscripts/mb110_tagBuildInputs.sh @@ -47,10 +47,13 @@ fi pushd $CJE_ROOT/$AGG_DIR # git tagging -git commit -m "Build input for build $BUILD_ID" -if [ $? -eq 0 -a "${BUILD_TYPE}" == "I" ] +if [ "${BUILD_TYPE}" == "I" ] then - git push origin HEAD + git commit -m "Build input for build $BUILD_ID" + if [[ $? -eq 0 ]] + then + git push origin HEAD + fi fi git submodule foreach "if grep \"^\${name}:\" ../../../streams/repositories_$PATCH_OR_BRANCH_LABEL.txt > /dev/null; then git tag $BUILD_ID; git push --verbose origin $BUILD_ID; else echo Skipping \$name; fi || :" |