From 3ebd2476137ec21c03b6cb6dea2714f0fef31e0e Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 29 Oct 2020 08:23:07 +0100 Subject: [PATCH] Workaround broken function in concourse scripts See spring-io/concourse-java-scripts#11 --- 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 f4f666ede2cd..5089c5bf7fcc 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 @@ -28,7 +35,7 @@ fi 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