2018-05-23 01:39:22 +02:00
|
|
|
pipeline {
|
|
|
|
|
agent none
|
2018-05-23 01:58:17 +02:00
|
|
|
triggers { pollSCM('H/15 * * * *') }
|
2018-05-23 02:00:46 +02:00
|
|
|
tools {
|
2018-05-23 02:02:13 +02:00
|
|
|
maven 'Maven 3.5.3'
|
2018-05-23 02:00:46 +02:00
|
|
|
jdk 'OpenJDK 9'
|
|
|
|
|
}
|
2018-05-23 02:29:14 +02:00
|
|
|
options { buildDiscarder(logRotator(numToKeepStr: '5')) }
|
2018-05-23 01:39:22 +02:00
|
|
|
stages {
|
|
|
|
|
stage('Build') {
|
|
|
|
|
parallel {
|
|
|
|
|
stage('Build on Windows') {
|
|
|
|
|
agent {
|
|
|
|
|
label "windows"
|
|
|
|
|
}
|
|
|
|
|
steps {
|
2018-05-23 02:16:53 +02:00
|
|
|
bat 'echo %JAVA_HOME%'
|
2018-05-23 01:39:22 +02:00
|
|
|
bat 'mvn -B -DskipTests clean package'
|
|
|
|
|
}
|
|
|
|
|
post {
|
2018-05-23 02:39:46 +02:00
|
|
|
success {
|
2018-05-23 18:19:47 +02:00
|
|
|
stash includes: 'plugins/**/target/*.jar*', name: 'windows-artifacts'
|
2018-05-23 01:39:22 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-05-23 01:50:27 +02:00
|
|
|
stage('Build on Linux') {
|
2018-05-23 01:39:22 +02:00
|
|
|
agent {
|
|
|
|
|
label "linux"
|
|
|
|
|
}
|
|
|
|
|
steps {
|
2018-05-23 02:16:53 +02:00
|
|
|
sh 'echo $JAVA_HOME'
|
2018-05-23 01:39:22 +02:00
|
|
|
sh 'mvn -B -DskipTests clean package'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
stage('Build on OSX') {
|
|
|
|
|
agent {
|
|
|
|
|
label "osx"
|
|
|
|
|
}
|
|
|
|
|
steps {
|
2018-05-23 02:16:53 +02:00
|
|
|
sh 'echo $JAVA_HOME'
|
2018-05-23 01:39:22 +02:00
|
|
|
sh 'mvn -B -DskipTests clean package'
|
|
|
|
|
}
|
|
|
|
|
post {
|
2018-05-23 02:39:46 +02:00
|
|
|
success {
|
2018-05-23 18:29:25 +02:00
|
|
|
stash includes: 'plugins/**/target/*.jar*', name: 'osx-artifacts'
|
2018-05-23 01:39:22 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-05-23 02:39:46 +02:00
|
|
|
stage('Unpack') {
|
|
|
|
|
agent {
|
|
|
|
|
label "linux"
|
|
|
|
|
}
|
|
|
|
|
steps {
|
|
|
|
|
unstash 'windows-artifacts'
|
|
|
|
|
unstash 'osx-artifacts'
|
|
|
|
|
}
|
|
|
|
|
post {
|
|
|
|
|
always {
|
|
|
|
|
archiveArtifacts artifacts: '**/target/*.jar*', fingerprint: true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-05-23 01:39:22 +02:00
|
|
|
}
|
|
|
|
|
}
|