From a1f160b3bf8045882f39303353d1ddcb3764a873 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 15 Jul 2020 11:20:15 +0200 Subject: [PATCH] Workaround broken function in concourse scripts --- ci/scripts/stage.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ci/scripts/stage.sh b/ci/scripts/stage.sh index 32f2233c..01de7d1a 100755 --- a/ci/scripts/stage.sh +++ b/ci/scripts/stage.sh @@ -2,6 +2,13 @@ set -e source $(dirname $0)/common.sh + +set_revision() { + [[ -n $1 ]] || { echo "missing set_revision_to_pom() argument" >&2; return 1; } + grep -q ".*" pom.xml || { echo "missing revision tag" >&2; return 1; } + sed --in-place -e "s|.*|${1}|" pom.xml > /dev/null +} + repository=$(pwd)/distribution-repository pushd git-repo > /dev/null @@ -17,7 +24,7 @@ stageVersion=$( get_next_release $snapshotVersion) nextVersion=$( bump_version_number $snapshotVersion) echo "Staging $stageVersion (next version will be $nextVersion)" -set_revision_to_pom "$stageVersion" +set_revision "$stageVersion" git config user.name "Spring Buildmaster" > /dev/null git config user.email "buildmaster@springframework.org" > /dev/null git add pom.xml > /dev/null