Skip to content

Commit

Permalink
Merge branch 'stable-4.13.x' into JENKINS-68542
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe committed May 23, 2022
2 parents 9c0d472 + 7611e01 commit 9c17e15
Showing 1 changed file with 9 additions and 44 deletions.
53 changes: 9 additions & 44 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,45 +1,10 @@
#!/usr/bin/env groovy

properties([[$class: 'BuildDiscarderProperty',
strategy: [$class: 'LogRotator', numToKeepStr: '10']]])


/* These platforms correspond to labels in ci.jenkins.io, see:
* https://github.com/jenkins-infra/documentation/blob/master/ci.adoc
/*
* While this is not a plugin, it is much simpler to reuse the pipeline code for CI. This allows for
* easy Linux/Windows testing and produces incrementals. The only feature that relates to plugins is
* allowing one to test against multiple Jenkins versions.
*/
parallel linux: {
node('maven') {
stage('Checkout') {
checkout scm
}
stage('Build') {
timeout(30) {
sh 'mvn -B -ntp -Dset.changelist clean install -Dmaven.test.failure.ignore -e'
}
}
stage('Archive') {
junit '**/target/surefire-reports/TEST-*.xml'
recordIssues(
enabledForFailure: true, aggregatingResults: true,
tools: [java(), spotBugs(pattern: '**/target/spotbugsXml.xml')]
)
infra.prepareToPublishIncrementals()
}
}
}, windows: {
node('windows') {
stage('Checkout') {
checkout scm
}
stage('Build') {
timeout(30) {
infra.runMaven(['clean verify -Dmaven.test.failure.ignore'])
}
}
stage('Archive') {
junit '**/target/surefire-reports/TEST-*.xml'
}
}
}, failFast: true

infra.maybePublishIncrementals()
buildPlugin(useContainerAgent: true, configurations: [
[ platform: 'linux', jdk: '8' ],
[ platform: 'linux', jdk: '11' ],
[ platform: 'windows', jdk: '11' ],
])

0 comments on commit 9c17e15

Please sign in to comment.