Force the project name to be `accountapp` so Gradle doesn't get clever

My pipeline was failing because Gradle was using the name of the pipeline to
infer the project name, i.e. "infra_accountapp" which results in an incorrectly
named war file.

Silly Gradle
This commit is contained in:
R. Tyler Croy 2016-03-21 14:38:01 -07:00
parent 9bec5d7917
commit a6da70fb99
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
3 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ FROM anapsix/alpine-java:jre8
RUN adduser -D -h /home/accountapp accountapp
ADD bin /home/accountapp/bin
ADD build/libs/account-app*.war /home/accountapp/bin/accountapp.war
ADD build/libs/accountapp*.war /home/accountapp/bin/accountapp.war
EXPOSE 8080
USER accountapp

1
Jenkinsfile vendored
View File

@ -22,7 +22,6 @@ node('docker') {
node('docker') {
stage 'Package'
unarchive mapping: ['build/' : 'build/']
sh 'ls ; ls build; ls build/libs'
sh 'git rev-parse HEAD > GIT_COMMIT'
shortCommit = readFile('GIT_COMMIT').take(6)

1
settings.gradle Normal file
View File

@ -0,0 +1 @@
rootProject.name = 'accountapp'