This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/fluo-recipes.git
The following commit(s) were added to refs/heads/master by this push:
new 94bc590 Synchronize release-candidate scripts across repos (#148)
94bc590 is described below
commit 94bc590007cefcc7ba50a4289197ecf2560c9fea
Author: Christopher Tubbs <[email protected]>
AuthorDate: Thu Mar 1 17:44:40 2018 -0500
Synchronize release-candidate scripts across repos (#148)
---
contrib/create-release-candidate.sh | 39 ++++++++++++++++++++++---------------
1 file changed, 23 insertions(+), 16 deletions(-)
diff --git a/contrib/create-release-candidate.sh
b/contrib/create-release-candidate.sh
index 7bc878c..56a2f56 100755
--- a/contrib/create-release-candidate.sh
+++ b/contrib/create-release-candidate.sh
@@ -17,6 +17,8 @@
cd "$(dirname "$0")/.." || exit 1
scriptname=$(basename "$0")
+export projName=fluo-recipes
+export projNameLong="Apache Fluo Recipes"
# check for gpg2
hash gpg2 2>/dev/null && gpgCommand=gpg2 || gpgCommand=gpg
@@ -73,7 +75,7 @@ createEmail() {
local branch; branch=$ver-rc$rc
local commit; commit=$(gitCommit "$branch") || exit 1
- local tag; tag=rel/fluo-recipes-$ver
+ local tag; tag=rel/$projName-$ver
echo
yellow "IMPORTANT!! IMPORTANT!! IMPORTANT!! IMPORTANT!! IMPORTANT!!
IMPORTANT!!"
echo
@@ -83,7 +85,7 @@ createEmail() {
echo
echo " Remember, $(red DO NOT PUSH) the $(red "$tag") tag until after
the vote"
echo " passes and the tag is re-made with a gpg signature using:"
- echo " $(red "git tag -f -m 'Apache Fluo Recipes $ver' -s $tag
${commit:0:7}")"
+ echo " $(red "git tag -f -m '$projNameLong $ver' -s $tag
${commit:0:7}")"
echo
yellow "IMPORTANT!! IMPORTANT!! IMPORTANT!! IMPORTANT!! IMPORTANT!!
IMPORTANT!!"
echo
@@ -105,11 +107,11 @@ createEmail() {
cat <<EOF
$(yellow '============================================================')
-Subject: $(green [VOTE] Apache Fluo Recipes "$branch")
+Subject: $(green [VOTE] "$projNameLong $branch")
$(yellow '============================================================')
Fluo Developers,
-Please consider the following candidate for Fluo Recipes $(green "$ver").
+Please consider the following candidate for $projNameLong $(green "$ver").
Git Commit:
$(green "$commit")
@@ -117,10 +119,11 @@ Branch:
$(green "$branch")
If this vote passes, a gpg-signed tag will be created using:
- $(green "git tag -f -m 'Apache Fluo Recipes $ver' -s $tag") \\
+ $(green "git tag -f -m '$projNameLong $ver' -s $tag") \\
$(green "$commit")
+
Staging repo: $(green
"https://repository.apache.org/content/repositories/orgapachefluo-$stagingrepo")
-Source (official release artifact): $(green
"https://repository.apache.org/content/repositories/orgapachefluo-$stagingrepo/org/apache/fluo/fluo-recipes/$ver/fluo-recipes-${ver}-source-release.tar.gz")
+Source (official release artifact): $(green
"https://repository.apache.org/content/repositories/orgapachefluo-$stagingrepo/org/apache/fluo/$projName/$ver/$projName-${ver}-source-release.tar.gz")
(Append ".sha1", ".md5", or ".asc" to download the signature/hash for a given
artifact.)
All artifacts were built and staged with:
@@ -129,16 +132,20 @@ All artifacts were built and staged with:
Signing keys are available at https://www.apache.org/dist/fluo/KEYS
(Expected fingerprint: $(green "$fingerprint"))
-Release notes (in progress) can be found at: $(green
"https://fluo.apache.org/release/fluo-recipes-$ver/")
+Release notes (in progress) can be found at: $(green
"https://fluo.apache.org/release/$projName-$ver/")
+
+Release testing instructions:
https://fluo.apache.org/release-process/#test-a-fluo-release
Please vote one of:
[ ] +1 - I have verified and accept...
[ ] +0 - I have reservations, but not strong enough to vote against...
[ ] -1 - Because..., I do not accept...
-... these artifacts as the $(green "$ver") release of Apache Fluo Recipes.
+... these artifacts as the $(green "$ver") release of $projNameLong.
-This vote will end on $(green "$votedate")
+This vote will remain open until at least $(green "$votedate").
($(green "$edtvotedate") / $(green "$pdtvotedate"))
+Voting can continue after this deadline until the release manager
+sends an email ending the vote.
Thanks!
@@ -204,13 +211,13 @@ createReleaseCandidate() {
red "You added '${extraReleaseArgs[*]}'"
fi
[[ ${#extraReleaseArgs[@]} -eq 0 ]] && [[ $gpgCommand != 'gpg' ]] &&
extraReleaseArgs=("-Dgpg.executable=$gpgCommand")
- extraReleaseArgs="-DextraReleaseArguments='${extraReleaseArgs[*]}'"
+ local extraReleaseArgsFlat;
extraReleaseArgsFlat="-DextraReleaseArguments='${extraReleaseArgs[*]}'"
local ver
ver=$(xmllint --shell pom.xml <<<'xpath
/*[local-name()="project"]/*[local-name()="version"]/text()' | grep content= |
cut -f2 -d=)
ver=${ver%%-SNAPSHOT}
echo "Building release candidate for version: $(green "$ver")"
- local tag; tag=rel/fluo-recipes-$ver
+ local tag; tag=rel/$projName-$ver
local cBranch; cBranch=$(currentBranch) || fail "$(red Failure)" to get
current branch from git
local rc; rc=$(prompter 'release candidate sequence number (eg. 1, 2, etc.)'
'[0-9]+')
@@ -226,14 +233,14 @@ createReleaseCandidate() {
} || fail "Unable to create working branch $(red "$nBranch") from $(red
"$cBranch")!"
# create a release candidate from a branch
- local oFile; oFile=$(mktemp --tmpdir
"fluo-recipes-build-$rcBranch-XXXXXXXX.log")
+ local oFile; oFile=$(mktemp --tmpdir
"$projName-build-$rcBranch-XXXXXXXX.log")
{
[[ -w $oFile ]] && runLog "$oFile" mvn clean release:clean
} || cleanUpAndFail 'mvn clean release:clean' "$oFile" "$cBranch" "$nBranch"
- runLog "$oFile" mvn -B release:prepare
-DdevelopmentVersion="${nextVer}-SNAPSHOT" "${extraReleaseArgs}" || \
- cleanUpAndFail "mvn -B release:prepare
-DdevelopmentVersion=${nextVer}-SNAPSHOT ${extraReleaseArgs}" "$oFile"
"$cBranch" "$nBranch"
- runLog "$oFile" mvn release:perform "${extraReleaseArgs}" || \
- cleanUpAndFail "mvn release:perform ${extraReleaseArgs}" "$oFile"
"$cBranch" "$nBranch"
+ runLog "$oFile" mvn -B release:prepare
-DdevelopmentVersion="${nextVer}-SNAPSHOT" "${extraReleaseArgsFlat}" || \
+ cleanUpAndFail "mvn -B release:prepare
-DdevelopmentVersion=${nextVer}-SNAPSHOT ${extraReleaseArgsFlat}" "$oFile"
"$cBranch" "$nBranch"
+ runLog "$oFile" mvn release:perform "${extraReleaseArgsFlat}" || \
+ cleanUpAndFail "mvn release:perform ${extraReleaseArgsFlat}" "$oFile"
"$cBranch" "$nBranch"
# switch back to original branch
run git checkout "${cBranch}"
--
To stop receiving notification emails like this one, please contact
[email protected].