-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJenkinsfile
42 lines (41 loc) · 1.23 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
37
38
39
40
41
42
@Library('jenkins-shared-libraries') _
pipeline {
agent {
label "alpine-jdk8-mvn3.6"
}
options {
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '100')
timeout(time: 2, unit: 'HOURS')
disableResume()
durabilityHint 'PERFORMANCE_OPTIMIZED'
disableConcurrentBuilds()
skipStagesAfterUnstable()
}
stages {
stage('Node') {
steps {
script {
container("maven") {
nodeInfo("mvn")
}
}
}
}
stage('Build') {
steps {
script {
container("maven") {
withMavenPlus(
timestamps: true,
mavenLocalRepo: workspace().getM2LocalRepoPath(),
mavenSettingsConfig: '67aaee2b-ca74-4ae1-8eb9-c8f16eb5e534',
publisherStrategy: 'EXPLICIT'
) {
sh "mvn clean install"
}
}
}
}
}
}
}