forked from SoftwareAG/sagdevops-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.builder
45 lines (41 loc) · 1.03 KB
/
Jenkinsfile.builder
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
// curl -X POST -F "jenkinsfile=<Jenkinsfile.builder" http://ccbvtauto.eur.ad.sag:8080/pipeline-model-converter/validate
def buildAndTest(release) {
sh """
. ./${release}.env
docker-compose build cc
cd templates/sag-spm-config
docker-compose run --rm provision
docker-compose build
cd ../..
docker-compose push cc
"""
}
pipeline {
agent {
label 'docker'
}
environment {
CC_TAG = '10.3'
}
stages {
stage('Build') {
parallel {
stage('10.3') {
steps {
buildAndTest('10.3')
}
}
stage('10.2') {
steps {
buildAndTest('10.2')
}
}
stage('10.1') {
steps {
buildAndTest('10.1')
}
}
}
}
}
}