[ 
https://issues.apache.org/jira/browse/BEAM-11074?focusedWorklogId=510037&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-510037
 ]

ASF GitHub Bot logged work on BEAM-11074:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Nov/20 01:02
            Start Date: 11/Nov/20 01:02
    Worklog Time Spent: 10m 
      Work Description: youngoli commented on a change in pull request #13290:
URL: https://github.com/apache/beam/pull/13290#discussion_r520976431



##########
File path: release/src/main/scripts/build_release_candidate.sh
##########
@@ -116,13 +116,21 @@ if [[ $confirmation = "y" ]]; then
   echo "-------------Building Java Artifacts with Gradle-------------"
   git config credential.helper store
 
-  ./gradlew release -Prelease.newVersion=${RELEASE}-SNAPSHOT \
-                -Prelease.releaseVersion=${RELEASE}-RC${RC_NUM} \
-                -Prelease.useAutomaticVersion=true --info --no-daemon
-
-  git push origin "${RELEASE_BRANCH}"
-  git push origin "v${RELEASE}-RC${RC_NUM}"
-
+  if git rev-parse "v${RELEASE}-RC${RC_NUM}" >/dev/null 2>&1; then
+    echo "Tag v${RELEASE}-RC${RC_NUM} already exists."
+    echo "Delete the tag and create a new tag commit (y) or skip this step 
(n)? [y/N]"
+    read confirmation
+    if [[ $confirmation = "y" ]]; then
+      git push origin :refs/tags/v${RELEASE}-RC${RC_NUM}
+    fi
+  fi
+  if [[ $confirmation = "y" ]]; then # Expected to only be "n" if user chose 
to skip creating tag.

Review comment:
       Done.

##########
File path: release/src/main/scripts/build_release_candidate.sh
##########
@@ -116,13 +116,21 @@ if [[ $confirmation = "y" ]]; then
   echo "-------------Building Java Artifacts with Gradle-------------"
   git config credential.helper store
 
-  ./gradlew release -Prelease.newVersion=${RELEASE}-SNAPSHOT \
-                -Prelease.releaseVersion=${RELEASE}-RC${RC_NUM} \
-                -Prelease.useAutomaticVersion=true --info --no-daemon
-
-  git push origin "${RELEASE_BRANCH}"
-  git push origin "v${RELEASE}-RC${RC_NUM}"
-
+  if git rev-parse "v${RELEASE}-RC${RC_NUM}" >/dev/null 2>&1; then
+    echo "Tag v${RELEASE}-RC${RC_NUM} already exists."
+    echo "Delete the tag and create a new tag commit (y) or skip this step 
(n)? [y/N]"
+    read confirmation
+    if [[ $confirmation = "y" ]]; then
+      git push origin :refs/tags/v${RELEASE}-RC${RC_NUM}

Review comment:
       Done.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 510037)
    Time Spent: 2h 40m  (was: 2.5h)

> 2.24.0 Post-Release improvements
> --------------------------------
>
>                 Key: BEAM-11074
>                 URL: https://issues.apache.org/jira/browse/BEAM-11074
>             Project: Beam
>          Issue Type: Bug
>          Components: build-system
>            Reporter: Daniel Oliveira
>            Assignee: Daniel Oliveira
>            Priority: P2
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> Just a bug to group various PRs that I will be making to improve the release 
> process for future release managers.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to