From 3d3c5ab00ed58d8c5966c5bcba624a88ed822fb2 Mon Sep 17 00:00:00 2001 From: Ajay Kannan Date: Fri, 2 Oct 2015 10:32:19 -0700 Subject: [PATCH 1/2] Automate push to maven central repository for releases --- .travis.yml | 6 ++++++ utilities/after_success.sh | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0850a6045028..e9d1c0514402 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,10 @@ jdk: before_install: - mvn clean - git clone -b travis `git config --get remote.origin.url` target/travis +- openssl aes-256-cbc -K $encrypted_631490ecae8f_key -iv $encrypted_631490ecae8f_iv -in target/travis/signing-tools.tar.enc -out target/travis/signing-tools.tar -d +- mkdir target/travis/signing-tools +- chmod 700 target/travis/signing-tools +- tar xvf target/travis/signing-tools.tar -C target/travis/signing-tools - cp target/travis/settings.xml ~/.m2/settings.xml install: mvn install -DskipTests=true -Dgpg.skip=true script: mvn verify @@ -20,3 +24,5 @@ env: - secure: "CUM2l73KFm7U4eDsUKkh1WyEUzF3v94Ltvs7MnKU9olE1dNp3YmRBL9Lqhx3hSDqm/xv0ETQsPy29Fs2+VFkhQQxSley6iS/4trr2fioTB680txfXo/zDdmGSP1q1/U40fv1S+jvuBRAhDV5W+8dhWOGtzMH0tJp/TszeDGlmCY=" - secure: "YBbdzseg5yDFpQIiMoc3P2BTmqef4o+KAvrLMEbobXjIkiglUQ7UHCoRWClX74fTKAwuC7JvK7o5xJGLnaY43jJADXrGtE8/d44HNJaieE67mNosDYtOiA0iI2uIRFCAnXJCZ8f/iHx2xVMHMNWlwyoil4IUcjj+D7FRcsT5alE=" - secure: "Od7BwllgFXVfzFe8ooTNm05TR+Xd5QjHW0oqhU8vclaQs2oX4e0eNIsebXQfLi3xDgd1pz5uUQC/Z4S0NqACwyUuUvPdGYYmRPTR7Dh8HgGJ4ojSdN3RwaHsxUqG7Ajts9rIHOtRpY28xOChVRNX0Z7eAPlvxYU4Ed2ZEo356r0=" + - secure: "P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pFKuKdnLdglOu5ZiQYQ2d4FQR2dq0GraOfUk0UVxw1RIW75eoUh8vfSPInWZkQ+kfa4OJEwhSR5jwURd76kYHaFyXwU7zgG3/JTePTSXGCfdWAbaKG43nEf6Kmz6my1VCQmwhWdrCNna/VD8YN49TKKlNj9b2A88mHmEqnHHL6xtvR7JqUF1I6WKmQqb9z1VCV9hHgVfPJro+PAer5Qrb6mFkSdg1JNv+aIIz3fEXX0SLbQyrRsWbnAR8kfO6wN4uT7RcGn/5q/vphxcUdU1klJ4bs/GQVFxWt12DfMmcMrqcf/M=" diff --git a/utilities/after_success.sh b/utilities/after_success.sh index 0511f6f441e5..a10e54b88620 100755 --- a/utilities/after_success.sh +++ b/utilities/after_success.sh @@ -31,6 +31,8 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" -a "${TRAVIS_BRANCH}" == "master" - # Update versions README and pom.xml in master branch cd .. utilities/update_docs_version.sh + + mvn deploy --settings target/travis/settings.xml -P sign-deploy else mvn deploy -DskipTests=true -Dgpg.skip=true --settings target/travis/settings.xml fi From e4f7dd8d59dda0e5a9b2a548f90c7dc273ccbc9d Mon Sep 17 00:00:00 2001 From: Ajay Kannan Date: Fri, 2 Oct 2015 12:22:19 -0700 Subject: [PATCH 2/2] doc fix --- utilities/after_success.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utilities/after_success.sh b/utilities/after_success.sh index a10e54b88620..8752c071583d 100755 --- a/utilities/after_success.sh +++ b/utilities/after_success.sh @@ -28,10 +28,8 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" -a "${TRAVIS_BRANCH}" == "master" - git config --global push.default simple git push --quiet "https://${CI_DEPLOY_USERNAME}:${CI_DEPLOY_PASSWORD}@github.com/GoogleCloudPlatform/gcloud-java.git" > /dev/null 2>&1 - # Update versions README and pom.xml in master branch cd .. - utilities/update_docs_version.sh - + utilities/update_docs_version.sh # Update version in READMEs mvn deploy --settings target/travis/settings.xml -P sign-deploy else mvn deploy -DskipTests=true -Dgpg.skip=true --settings target/travis/settings.xml