Skip to content

Commit 1125e69

Browse files
Pogrebnyak, SergeiPogrebnyak, Sergei
authored andcommitted
Updated Jenkinsfile
1 parent 5cf9e99 commit 1125e69

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

Jenkinsfile

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,25 @@ pipeline {
88
}
99
environment {
1010
COMPOSE_PROJECT_NAME = 'sagdevopsccdockerbuilder'
11+
RELEASE = '10.1'
1112
}
1213
stages {
1314
stage("Simple") {
14-
environment {
15-
COMPOSE_FILE = 'simple.yml'
16-
}
1715
steps {
18-
sh 'docker-compose build'
16+
sh 'envsubst < init-$RELEASE.yaml > init.yaml && cat init.yaml'
17+
sh 'docker-compose build simple'
18+
sh 'docker-compose build unmanaged'
19+
sh 'docker-compose build managed'
20+
sh 'docker images | grep msc'
21+
sh 'docker-compose run --rm init'
22+
sh 'docker-compose up -d managed'
23+
sh 'docker-compose run --rm test'
1924
}
20-
}
21-
stage("Unmanaged") {
22-
environment {
23-
COMPOSE_FILE = 'unmanaged.yml'
24-
}
25-
steps {
26-
sh 'docker-compose build'
27-
}
28-
}
29-
stage("Managed") {
30-
environment {
31-
COMPOSE_FILE = 'managed.yml'
32-
}
33-
steps {
34-
sh 'docker-compose build'
25+
post {
26+
always {
27+
sh 'docker-compose logs'
28+
sh 'docker-compose down'
29+
}
3530
}
36-
}
3731
}
3832
}

0 commit comments

Comments
 (0)