0

Fix deploy missing creds

This commit is contained in:
Ronald Jack Jenkins Jr
2017-07-30 21:49:01 -04:00
parent b2fb40c59b
commit 37e9bbeecf
3 changed files with 25 additions and 8 deletions

View File

@@ -10,6 +10,8 @@ dependencies:
- sudo ln -sfn /usr/local/apache-maven-3.3.9 /usr/local/apache-maven
override:
- mvn -V -DskipTests clean install dependency:resolve-plugins dependency:go-offline
post:
- ./env.sh
test:
override:
@@ -19,11 +21,4 @@ deployment:
master:
branch: master
commands:
- mvn clean
- mvn -s settings.xml -Drtr.release=true -P release
- git config --global user.email "me@ronjenkins.info"
- git config --global user.name "Ronald Jack Jenkins Jr."
- git add pom.xml
- git commit -m "Committing release $(cat .version)"
- git tag $(cat .version)
- git push origin $(cat .version)
- ./deploy.sh

20
deploy.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
mvn clean
set -o allexport
source .env
set +o allexport
rm .env
mvn -s settings.xml -Drtr.release=true -P release
git config --global user.email "me@ronjenkins.info"
git config --global user.name "Ronald Jack Jenkins Jr."
POM_VERSION=$(cat .version | xargs)
git add pom.xml
git commit -m "Committing release $POM_VERSION"
git tag "$POM_VERSION"
git push origin "$POM_VERSION"

2
env.sh Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
env | grep GMSP_OAUTHTOKEN >> .env