Return-Path: X-Original-To: apmail-aurora-commits-archive@minotaur.apache.org Delivered-To: apmail-aurora-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66DCE1833F for ; Sun, 10 Jan 2016 19:59:28 +0000 (UTC) Received: (qmail 42346 invoked by uid 500); 10 Jan 2016 19:59:28 -0000 Delivered-To: apmail-aurora-commits-archive@aurora.apache.org Received: (qmail 42292 invoked by uid 500); 10 Jan 2016 19:59:28 -0000 Mailing-List: contact commits-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.apache.org Delivered-To: mailing list commits@aurora.apache.org Received: (qmail 42283 invoked by uid 99); 10 Jan 2016 19:59:28 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jan 2016 19:59:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0FF45DFF67; Sun, 10 Jan 2016 19:59:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wfarner@apache.org To: commits@aurora.apache.org Message-Id: <6ed06ef4f05449e685c5447db1c21106@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: aurora git commit: Change release script to use rel/ tag prefix. Date: Sun, 10 Jan 2016 19:59:28 +0000 (UTC) Repository: aurora Updated Branches: refs/heads/master 6b768bd3d -> e4c9c73f5 Change release script to use rel/ tag prefix. Reviewed at https://reviews.apache.org/r/42117/ Project: http://git-wip-us.apache.org/repos/asf/aurora/repo Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/e4c9c73f Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/e4c9c73f Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/e4c9c73f Branch: refs/heads/master Commit: e4c9c73f5e8422931f0f495bb0e7d614f259a50a Parents: 6b768bd Author: Bill Farner Authored: Sun Jan 10 11:59:23 2016 -0800 Committer: Bill Farner Committed: Sun Jan 10 11:59:23 2016 -0800 ---------------------------------------------------------------------- build-support/release/release | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aurora/blob/e4c9c73f/build-support/release/release ---------------------------------------------------------------------- diff --git a/build-support/release/release b/build-support/release/release index 9e8dd41..c3961f0 100755 --- a/build-support/release/release +++ b/build-support/release/release @@ -111,7 +111,7 @@ else fi previous_version_tag="${current_version}-rc${rc_tag_version}" -current_version_tag="${current_version}" +current_version_tag="rel/${current_version}" # Make sure the tag does not exist if [[ $(git ls-remote --exit-code --tags origin refs/tags/${current_version} >/dev/null 2>&1) == 0 ]]; then @@ -124,21 +124,20 @@ if [[ $publish == 0 ]]; then echo "Performing dry-run" fi -dist_name="apache-aurora-${current_version_tag}" +dist_name="apache-aurora-${current_version}" if [[ $publish == 1 ]]; then # Create release branch and tag and push them to the origin - echo "Creating ${current_version_tag} branch" - git checkout -b ${current_version_tag} + echo "Creating ${current_version_tag} staging branch" + git checkout -b "stage_${current_version_tag}" # Increment the version and create a branch - echo ${current_version_tag} > .auroraversion + echo ${current_version} > .auroraversion git add .auroraversion - git commit -m "Updating .auroraversion to release version ${current_version_tag}." + git commit -m "Updating .auroraversion to release version ${current_version}." + git tag -s "${current_version_tag}" \ + -m "Apache Aurora ${current_version} release" ${current_version_tag} git push origin "${current_version_tag}" - git tag -s "${current_version_tag}" -m "Apache Aurora ${current_version_tag} release" ${current_version_tag} - # Need to disambiguate here, since we already have a local branch ref named for the release. - git push origin "refs/tags/${current_version_tag}" fi dist_dir=${base_dir}/dist @@ -161,10 +160,10 @@ fi cd ${release_dir} -# Rename the .auroraversion from -RC[:digit:] to release current_version_tag and repackage the release +# Rename the .auroraversion from -RC[:digit:] to release current_version and repackage the release tar -xzf ${rc_dir}/apache-aurora-*.tar.gz mv apache-aurora-* ${dist_name} -echo ${current_version_tag} > ${dist_name}/.auroraversion +echo ${current_version} > ${dist_name}/.auroraversion tar -czf ${dist_name}.tar.gz ${dist_name} rm -rf ${dist_name} @@ -193,11 +192,11 @@ echo # Create the email template for the release to be sent to the mailing lists. MESSAGE=$(cat <<__EOF__ To: dev@aurora.apache.org -Subject: [RESULT][VOTE] Release Apache Aurora ${current_version_tag} RC${rc_tag_version} +Subject: [RESULT][VOTE] Release Apache Aurora ${current_version} RC${rc_tag_version} All, -The vote to accept Apache Aurora ${current_version_tag} RC${rc_tag_version} -as the official Apache Aurora ${current_version_tag} release has passed. +The vote to accept Apache Aurora ${current_version} RC${rc_tag_version} +as the official Apache Aurora ${current_version} release has passed. +1 (Binding) @@ -211,7 +210,7 @@ as the official Apache Aurora ${current_version_tag} release has passed. There were no 0 or -1 votes. Thank you to all who helped make this release. -Aurora ${current_version_tag} includes the following: +Aurora ${current_version} includes the following: --- The CHANGELOG for the release is available at: ${aurora_git_web_url}&f=CHANGELOG&hb=${current_version_tag}