Ensure that the front-end site and api war are in deploy/ for the container build

This commit is contained in:
R. Tyler Croy 2016-11-02 05:06:59 -07:00
parent 4acb86ba58
commit e84390edc3
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 12 additions and 2 deletions

12
Jenkinsfile vendored
View File

@ -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'
}
}

View File

@ -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