-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathJenkinsfile
29 lines (24 loc) · 950 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!groovy
def jenkinsVersions = [null, '2.60.1']
def jenkinsPlatforms = ['linux']
// Don't test plugin compatibility - exceeds 1 hour timeout
// Allow failing tests to retry execution
// buildPlugin(failFast: false)
if (env.GERRIT_API_URL == null) {
this.gerritComment = { dict -> }
this.gerritReview = { dict -> }
}
// Test plugin compatbility to latest Jenkins LTS
// Allow failing tests to retry execution
try {
gerritReview labels: [:], message: "Build started ${env.BUILD_URL}"
buildPlugin(jenkinsVersions: jenkinsVersions, failFast: false, platforms: jenkinsPlatforms)
if (currentBuild.result == 'UNSTABLE') {
gerritReview labels: [Verified: 0], message: "Build is unstable, there are failed tests ${env.BUILD_URL}"
} else {
gerritReview labels: [Verified: +1], message: "Build succeeded ${env.BUILD_URL}"
}
} catch (e) {
gerritReview labels: [Verified: -1], message: "Build failed ${env.BUILD_URL}"
throw e
}