mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-15 23:13:30 +08:00
Workaround broken function in concourse scripts
This commit is contained in:
parent
ec2548d3c6
commit
a1f160b3bf
@ -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
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user