-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathJenkinsfile.docker
40 lines (37 loc) · 963 Bytes
/
Jenkinsfile.docker
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
#!groovy
pipeline {
agent {
label 'docker'
}
options {
buildDiscarder(logRotator(numToKeepStr:'10'))
disableConcurrentBuilds()
}
stages {
stage("Up") {
steps {
timeout(time:10, unit:'MINUTES') {
sh 'docker-compose -p sagdevops-ci-infra run --rm up'
}
}
}
stage("Test") {
steps {
timeout(time:5, unit:'MINUTES') {
sh 'docker-compose -p sagdevops-ci-infra run --rm test'
}
}
post {
//always {
// sh 'docker-compose -p sagdevops-ci-infra stop'
//}
success {
junit 'build/tests/**/TEST-*.xml'
}
unstable {
junit 'build/tests/**/TEST-*.xml'
}
}
}
}
}