Build the data file and host it for the generation

This commit is contained in:
R. Tyler Croy 2016-10-16 15:50:27 -07:00
parent 126d56e9cc
commit 98b31fc9fd
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 20 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea/
target/
*.iml
*.sw*

23
Jenkinsfile vendored
View File

@ -2,12 +2,27 @@
node('docker') {
checkout scm
stage('Generate Plugin Data') {
timestamps {
docker.iamge('maven').inside {
sh 'mvn -PgeneratePluginData'
}
}
}
stage('Build') {
timestamps {
checkout scm
docker.image('maven').inside {
sh 'mvn -B -Dmaven.test.failure.ignore clean verify'
}
docker.image('nginx:alpine').withRun('-p 8080:80 -v $PWD/target:/usr/share/nginx/html') {
docker.image('maven').inside {
withEnv([
'DATA_FILE_URL=http://localhost:8080/target/plugins.json.gzip',
]) {
sh 'mvn -B -Dmaven.test.failure.ignore clean verify'
{
}
}'
junit 'target/surefire-reports/**/*.xml'
archiveArtifacts archives: 'target/**/*.war', fingerprint: true