forked from jenkinsci/trilead-ssh2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
40 lines (39 loc) · 1.26 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
pipeline {
agent { label 'linux' }
stages {
stage('Checkout') {
steps {
script {
infra.checkout()
}
}
}
stage('Build') {
steps {
script {
m2repo = "${pwd tmp: true}/m2repo"
String jdk = "8"
List<String> mavenOptions = [
'--update-snapshots',
"-Dmaven.repo.local=$m2repo",
'-Dmaven.test.failure.ignore',
"-Dfindbugs.failOnError=false",
"clean install",
"findbugs:findbugs"
]
infra.runMaven(mavenOptions, jdk)
}
}
post {
always {
archiveArtifacts(allowEmptyArchive: true,
artifacts: "**/target/*.jar",
onlyIfSuccessful: false)
junit(allowEmptyResults: true,
keepLongStdio: true,
testResults: "**/target/surefire-reports/**/*.xml")
}
}
}
}
}