Skip to content

Commit

Permalink
Use staging-release instead of staging-promote to avoid infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Sierra and Russ Olsen committed Jan 27, 2012
1 parent 5fbfca8 commit bbc1ae7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script/build
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ if [ "$HUDSON" == "true" ]; then
git push origin "$TAG"

mvn gpg:sign-and-deploy-file -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype-nexus-staging -DpomFile="$POM_FILE" -Dfile="$JAR_FILE"
mvn nexus:staging-close
mvn nexus:staging-promote -Dnexus.promote.autoSelectOverride=true
mvn nexus:staging-close nexus:staging-release -DtargetRepositoryId=releases -Dnexus.promote.autoSelectOverride=true
else
echo "Skipping Maven deployment and Git push because we are not on Hudson."
fi

0 comments on commit bbc1ae7

Please sign in to comment.