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:
parent
9bec5d7917
commit
a6da70fb99
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
rootProject.name = 'accountapp'
|
Loading…
Reference in New Issue