Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2020-02-19 09:29:32 +0000
committerSravan Kumar Lakkimsetti2020-02-19 09:29:32 +0000
commitdf528b74f84941e46bde384c32f5ac56d2ffd3f4 (patch)
treea9073aad6b23e71f159469d0309b708f2c160523
parentb0f5ae4a56cde547c8e21ab63d3608fc3df9ccb8 (diff)
downloadeclipse.platform.releng.aggregator-df528b74f84941e46bde384c32f5ac56d2ffd3f4.tar.gz
eclipse.platform.releng.aggregator-df528b74f84941e46bde384c32f5ac56d2ffd3f4.tar.xz
eclipse.platform.releng.aggregator-df528b74f84941e46bde384c32f5ac56d2ffd3f4.zip
Bug 560306 - [JIRO] Tag is not getting created if there are no changes in the submodules
Change-Id: I9d999c45031011e251c80037f317afaf03039d88 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rwxr-xr-xcje-production/mbscripts/mb110_tagBuildInputs.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/cje-production/mbscripts/mb110_tagBuildInputs.sh b/cje-production/mbscripts/mb110_tagBuildInputs.sh
index db6de9cc7..5d0000668 100755
--- a/cje-production/mbscripts/mb110_tagBuildInputs.sh
+++ b/cje-production/mbscripts/mb110_tagBuildInputs.sh
@@ -13,7 +13,6 @@
# Contributors:
# Kit Lo - initial API and implementation
#*******************************************************************************
-set -e
if [ $# -ne 1 ]; then
echo USAGE: $0 env_file
@@ -35,7 +34,10 @@ pushd $CJE_ROOT/$AGG_DIR
# git tagging
git commit -m "Build input for build $BUILD_ID"
-git push origin HEAD
+if [[ $? -eq 0 ]]
+then
+ git push origin HEAD
+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 || :"
#git submodule foreach "if grep \"^\${name}:\" ../../../streams/repositories_$PATCH_OR_BRANCH_LABEL.txt > /dev/null; then git tag $BUILD_ID; else echo Skipping \$name; fi || :"

Back to the top