Ensure that the front-end site and api war are in deploy/ for the container build
This commit is contained in:
parent
4acb86ba58
commit
e84390edc3
|
@ -6,12 +6,18 @@ properties([[$class: 'jenkins.model.BuildDiscarderProperty',
|
|||
|
||||
def isPullRequest = !!(env.CHANGE_ID)
|
||||
def isMultibranch = !!(env.BRANCH_NAME)
|
||||
String shortCommit = ''
|
||||
|
||||
node('docker') {
|
||||
stage('Checkout') {
|
||||
checkout scm
|
||||
sh 'git rev-parse HEAD > GIT_COMMIT'
|
||||
String shortCommit = readFile('GIT_COMMIT').take(6)
|
||||
shortCommit = readFile('GIT_COMMIT').take(6)
|
||||
|
||||
dir('deploy') {
|
||||
echo 'Cloning the latest front-end site for baking our container'
|
||||
git 'https://github.com/jenkins-infra/plugin-site.git'
|
||||
}
|
||||
}
|
||||
|
||||
timestamps {
|
||||
|
@ -38,6 +44,10 @@ node('docker') {
|
|||
'DATA_FILE_URL=http://nginx/plugins.json.gzip',
|
||||
]) {
|
||||
sh 'mvn -B -Dmaven.test.failure.ignore verify'
|
||||
/* Copy our war file into the deploy directory for easy
|
||||
* COPYing into our container
|
||||
*/
|
||||
sh 'cp target/*.war deploy'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ RUN apk update && apk add supervisor nodejs
|
|||
|
||||
|
||||
# Bring our Java backend app over for Jetty
|
||||
COPY ../target/*.war /var/lib/jetty/webapps/ROOT.war
|
||||
COPY *.war /var/lib/jetty/webapps/ROOT.war
|
||||
|
||||
# Bring our supervisor configuration for supervisord
|
||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
|
Loading…
Reference in New Issue