Skip to content

Commit a8db6a8

Browse files
committed
Merge branch '2.1.x' into 2.2.x
See gh-23962
2 parents cf09451 + 3ebd247 commit a8db6a8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ci/scripts/stage.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
set -e
33

44
source $(dirname $0)/common.sh
5+
6+
set_revision() {
7+
[[ -n $1 ]] || { echo "missing set_revision_to_pom() argument" >&2; return 1; }
8+
grep -q "<revision>.*</revision>" pom.xml || { echo "missing revision tag" >&2; return 1; }
9+
sed --in-place -e "s|<revision>.*</revision>|<revision>${1}</revision>|" pom.xml > /dev/null
10+
}
11+
512
repository=$(pwd)/distribution-repository
613

714
pushd git-repo > /dev/null
@@ -28,7 +35,7 @@ fi
2835

2936
echo "Staging $stageVersion (next version will be $nextVersion)"
3037

31-
set_revision_to_pom "$stageVersion"
38+
set_revision "$stageVersion"
3239
git config user.name "Spring Buildmaster" > /dev/null
3340
git config user.email "[email protected]" > /dev/null
3441
git add pom.xml > /dev/null

0 commit comments

Comments
 (0)