Skip to content

Commit

Permalink
Workaround broken function in concourse scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Oct 29, 2020
1 parent 3271814 commit 3ebd247
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ci/scripts/stage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<revision>.*</revision>" pom.xml || { echo "missing revision tag" >&2; return 1; }
sed --in-place -e "s|<revision>.*</revision>|<revision>${1}</revision>|" pom.xml > /dev/null
}

repository=$(pwd)/distribution-repository

pushd git-repo > /dev/null
Expand All @@ -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
Expand Down

0 comments on commit 3ebd247

Please sign in to comment.