forked from CROSSINGTUD/SPDS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
39 lines (34 loc) · 748 Bytes
/
Jenkinsfile
File metadata and controls
39 lines (34 loc) · 748 Bytes
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
pipeline {
agent any
tools {
jdk 'Oracle JDK 8'
}
stages {
stage('Build') {
steps {
sh 'mvn clean compile'
}
}
stage('Test') {
steps {
sh 'mvn clean test'
}
post {
always {
junit 'shippable/testresults/**/*.xml'
}
}
}
stage('Deploy'){
when {
anyOf { branch 'master'; branch 'on-demand-icfg' }
}
steps {
configFileProvider(
[configFile(fileId: 'd8345989-7f12-4d8f-ae12-0fe9ce025188', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS clean deploy -DskipTests'
}
}
}
}
}