Skip to content

Commit

Permalink
Move attempted decryption of publishing keys down into ciBuild.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Jul 25, 2017
1 parent 29424a0 commit 2e12586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ machine:
java:
version: oraclejdk8
test:
pre:
- openssl aes-256-cbc -d -in gradle.properties.enc -out gradle.properties -k $KEY
override:
- ./gradle/ciBuild.sh
post:
Expand Down
2 changes: 2 additions & 0 deletions gradle/ciBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ if [ $CIRCLE_PR_NUMBER ]; then
./gradlew clean build $SWITCHES
elif [ -z $CIRCLE_TAG ]; then
echo -e ?'Build Branch with Snapshot => Branch ['$CIRCLE_BRANCH']'
openssl aes-256-cbc -d -in gradle.properties.enc -out gradle.properties -k $KEY
./gradlew clean build $SWITCHES
elif [ $CIRCLE_TAG ]; then
echo -e 'Build Branch for Release => Branch ['$CIRCLE_BRANCH'] Tag ['$CIRCLE_TAG']'
openssl aes-256-cbc -d -in gradle.properties.enc -out gradle.properties -k $KEY
case "$CIRCLE_TAG" in
*-rc\.*)
./gradlew -Prelease.disableGitChecks=true -Prelease.useLastTag=true clean build candidate $SWITCHES
Expand Down

0 comments on commit 2e12586

Please sign in to comment.