forked from jenkinsci/kubernetes-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
36 lines (36 loc) · 1.16 KB
/
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
29
30
31
32
33
34
35
36
def buildNumber = BUILD_NUMBER as int; if (buildNumber > 1) milestone(buildNumber - 1); milestone(buildNumber) // JENKINS-43353 / JENKINS-58625
properties([
durabilityHint('PERFORMANCE_OPTIMIZED'),
buildDiscarder(logRotator(numToKeepStr: '5')),
])
parallel kind: {
node('docker') {
timeout(60) {
checkout scm
withEnv(["WSTMP=${pwd tmp: true}"]) {
try {
sh 'bash kind.sh'
dir (WSTMP) {
junit 'surefire-reports/*.xml'
}
} finally {
dir (WSTMP) {
if (fileExists('kindlogs/docker-info.txt')) {
archiveArtifacts 'kindlogs/'
}
}
}
}
}
}
}, jdk11: {
node('maven-11') {
timeout(60) {
checkout scm
sh 'mvn -B -ntp -Dset.changelist -Dmaven.test.failure.ignore clean install'
infra.prepareToPublishIncrementals()
junit 'target/surefire-reports/*.xml'
}
}
}, failFast: true
infra.maybePublishIncrementals()