Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael Istria2021-12-03 12:47:17 +0000
committerMickael Istria2021-12-03 15:10:16 +0000
commitbe4564ca15f6b8aec42b902d6c9f833f5ff01397 (patch)
treee3401662bc43775052cbb8945f8c039dace00028
parent8fba65ff84229248c0c4360f46412803314196b6 (diff)
downloadeclipse.platform.releng.aggregator-be4564ca15f6b8aec42b902d6c9f833f5ff01397.tar.gz
eclipse.platform.releng.aggregator-be4564ca15f6b8aec42b902d6c9f833f5ff01397.tar.xz
eclipse.platform.releng.aggregator-be4564ca15f6b8aec42b902d6c9f833f5ff01397.zip
Bug 577323 - Fix tag command
`git remote get-url` isn't available on build machine, switch to `git config --get remote.origin.url` Change-Id: I2866a34ccd9dcad156ccaa6e85dbdd7209e0367b Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.releng.aggregator/+/188497 Tested-by: Platform Bot <platform-bot@eclipse.org> Reviewed-by: Mickael Istria <mistria@redhat.com>
-rwxr-xr-xcje-production/mbscripts/mb110_tagBuildInputs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cje-production/mbscripts/mb110_tagBuildInputs.sh b/cje-production/mbscripts/mb110_tagBuildInputs.sh
index 5712b1a86..af8052ba2 100755
--- a/cje-production/mbscripts/mb110_tagBuildInputs.sh
+++ b/cje-production/mbscripts/mb110_tagBuildInputs.sh
@@ -65,7 +65,7 @@ function toPushRepo() {
fi
}
export -f toPushRepo
-git submodule foreach 'if grep "^${name}:" ../../../streams/repositories_$PATCH_OR_BRANCH_LABEL.txt > /dev/null; then git tag $BUILD_ID; PUSH_URL="toPushRepo $(git remote get-url --push origin)"; git push --verbose $PUSH_URL $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; PUSH_URL="$(toPushRepo $(git config --get remote.origin.url))"; git push --verbose $PUSH_URL $BUILD_ID; else echo Skipping $name; fi || :'
git tag $BUILD_ID
git push --verbose origin $BUILD_ID

Back to the top