Build the data file and host it for the generation
This commit is contained in:
parent
126d56e9cc
commit
98b31fc9fd
|
@ -1,3 +1,4 @@
|
|||
.idea/
|
||||
target/
|
||||
*.iml
|
||||
*.sw*
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue