From e7e98cdb52366eec24f067db64de5970f6163f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Willi=20Sch=C3=B6nborn?= Date: Wed, 27 Mar 2019 09:57:40 +0100 Subject: [PATCH] Changed release script to allow 4-eyes principle --- release.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/release.sh b/release.sh index ccb5d72f2..02aa46487 100755 --- a/release.sh +++ b/release.sh @@ -8,6 +8,8 @@ current=$(git describe --abbrev=0 || echo 0.0.0) release=$(semver ${current} -i $1 --preid RC) next=$(semver ${release} -i minor) +git checkout -b release/${release} + ./mvnw versions:set -D newVersion=${release} git commit -am "Release ${release}" ./mvnw clean deploy scm:tag -P release -D tag=${release} -D pushChanges=false @@ -17,3 +19,6 @@ git commit -am "Development ${next}-SNAPSHOT" git push git push --tags + +git checkout master +git branch -D release/${release}