Skip to content

Commit

Permalink
Use curl instead of maven wagon
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Apr 8, 2016
1 parent ddb7c99 commit 9a1ffbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utilities/after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then
fi
if [ "${SITE_VERSION##*-}" != "SNAPSHOT" ]; then
# Deploy Maven artifacts (if they don't exist yet) and update artifact version in READMEs.
ARTIFACT_EXISTS=$(mvn wagon:exist -Dwagon.url=https://oss.sonatype.org/content/repositories/releases/com/google/gcloud/gcloud-java/$SITE_VERSION)
if [[ "$ARTIFACT_EXISTS" == *"does not exists."* -a "$ARTIFACT_EXISTS" != "" ]]; then
mvn clean deploy -DskipITs --settings ~/.m2/settings.xml -P sign-deploy
URL=https://oss.sonatype.org/content/repositories/releases/com/google/gcloud/gcloud-java/$SITE_VERSION
if curl --output /dev/null --silent --head --fail "$URL"; then
echo "Not deploying artifacts because it seems like they already exist."
else
echo "Not deploying artifacts because it seems like they already exist."
mvn clean deploy -DskipITs --settings ~/.m2/settings.xml -P sign-deploy
fi
utilities/update_docs_version.sh

Expand Down

0 comments on commit 9a1ffbd

Please sign in to comment.