-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile-NIS
96 lines (95 loc) · 3.23 KB
/
Jenkinsfile-NIS
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
pipeline {
agent {
label 'cimapp'
}
tools {
maven 'maven'
}
options {
buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr:'5'))
}
parameters {
booleanParam defaultValue: true, description: 'Build', name: 'BUILD'
booleanParam defaultValue: true, description: 'CIMReader', name: 'CIMReader'
booleanParam defaultValue: true, description: 'CIMExport', name: 'CIMExport'
}
stages {
stage ('Build') {
when {
expression {
return params.BUILD
}
}
steps {
withMaven(
maven: 'maven',
mavenLocalRepo: '../../maven_repos/'+BRANCH_NAME,
options: [
junitPublisher(disabled: true),
artifactsPublisher(disabled: true),
spotbugsPublisher(healthy: '10', unHealthy: '100')
]
) {
sh 'mvn -B -U -DskipTests -Dgpg.skip -DskipITs -Dscaladoc.skip=true clean install'
}
}
post {
always {
archiveArtifacts artifacts: 'CIMReader/target/*.jar', fingerprint: true
}
}
}
stage('Test') {
parallel{
stage("Test CIMReader") {
when {
expression {
return params.CIMReader
}
}
steps {
withMaven(
maven: 'maven',
mavenLocalRepo: '../../maven_repos/'+BRANCH_NAME,
options: [
junitPublisher(disabled: true),
artifactsPublisher(disabled: true)
]
) {
sh 'mvn verify -pl CIMReader -Dgpg.skip'
}
}
post {
always {
junit 'CIMReader/target/surefire-reports/*.xml'
}
}
}
stage("Test CIMExport") {
when {
expression {
return params.CIMExport
}
}
steps {
withMaven(
maven: 'maven',
mavenLocalRepo: '../../maven_repos/'+BRANCH_NAME,
options: [
junitPublisher(disabled: true),
artifactsPublisher(disabled: true)
]
) {
sh 'mvn verify -pl CIMExport -Dgpg.skip'
}
}
post {
always {
junit 'CIMExport/target/surefire-reports/*.xml'
}
}
}
}
}
}
}