Added nexus repository functionality for retrieving repoid

Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/0333eda3
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/0333eda3
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/0333eda3

Branch: refs/heads/wicket-6.x
Commit: 0333eda3d99c8385cbb51249fc803168ee06acca
Parents: 28434ec
Author: Martijn Dashorst <[email protected]>
Authored: Fri Aug 29 11:57:29 2014 +0200
Committer: Martijn Dashorst <[email protected]>
Committed: Fri Aug 29 11:57:29 2014 +0200

----------------------------------------------------------------------
 release-dashorst.sh | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/0333eda3/release-dashorst.sh
----------------------------------------------------------------------
diff --git a/release-dashorst.sh b/release-dashorst.sh
index b16f54c..43e20cf 100755
--- a/release-dashorst.sh
+++ b/release-dashorst.sh
@@ -240,6 +240,12 @@ svn add *
 svn commit -m "Upload wicket-$version to staging area"
 popd
 
+stagingrepoid=$(mvn 
org.sonatype.plugins:nexus-staging-maven-plugin:LATEST:rc-list 
-DnexusUrl=https://repository.apache.org -DserverId=apache.releases.https |grep 
-Eo "(orgapachewicket-\d+)";)
+
+echo "Closing staging repository with id $stagingrepoid"
+
+mvn org.sonatype.plugins:nexus-staging-maven-plugin:LATEST:rc-close 
-DstagingRepositoryId=$stagingrepoid -DnexusUrl=https://repository.apache.org 
-DserverId=apache.releases.https -Ddescription="Release has been built, 
awaiting vote"
+
 echo "Generating Vote email"
 
 echo "This is a vote to release Apache Wicket $version
@@ -259,7 +265,7 @@ Distributions, changelog, keys and signatures can be found 
at:
 
 Staging repository:
 
-    https://repository.apache.org/content/repositories/orgapachewicket-1024/
+    https://repository.apache.org/content/repositories/$stagingrepoid/
 
 The binaries are available in the above link, as are a staging
 repository for Maven. Typically the vote is on the source, but should
@@ -341,4 +347,12 @@ To renumber the next development iteration 
$next_dev_version:
     git add \`find . ! \\( -type d -name \"target\" -prune \\) -name pom.xml\`
     git commit -m \"Start next development version\"
     git push
+
+To release the Maven artefacts:
+
+       mvn org.sonatype.plugins:nexus-staging-maven-plugin:LATEST:rc-release 
-DstagingRepositoryId=$stagingrepoid -DnexusUrl=https://repository.apache.org 
-DserverId=apache.releases.https -Ddescription=\"Release vote has passed\"
+
+Or in case of a failed vote, to drop the staging repository:
+
+       mvn org.sonatype.plugins:nexus-staging-maven-plugin:LATEST:rc-drop 
-DstagingRepositoryId=$stagingrepoid -DnexusUrl=https://repository.apache.org 
-DserverId=apache.releases.https -Ddescription=\"Release vote has failed\"
 "

Reply via email to