forked from HPI-BP2017N2/RESTClient-deprecated-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
31 lines (31 loc) · 873 Bytes
/
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
pipeline {
agent {
docker {
image 'maven:3'
args '-v /root/.m2:/root/.m2'
}
}
stages {
stage('Build') {
steps {
sh 'mvn -B clean package -Dmaven.test.skip=true'
}
}
stage('Test') {
steps {
sh 'mvn test'
}
}
stage('Publish') {
steps {
configFileProvider([configFile(fileId: '4712d7e9-ba97-45c2-b20a-2f24c5dc12b7', variable: 'publish')])
{
sshagent(credentials: ['a65d8fb8-0920-4060-a29d-2c46c3c2f994']){
sh 'chmod 775 $publish'
sh '$publish'
}
}
}
}
}
}