-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
52 lines (50 loc) · 933 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
pipeline {
agent {
node {
label 'linux'
}
}
stages {
stage('build') {
steps {
withMaven(maven: 'maven:latest') {
sh 'mvn clean package'
}
}
}
stage('build docker base image') {
steps {
sh 'docker build .'
sh 'docker tag alpine-jdk:latest'
}
}
stage('build docker service images') {
parallel {
stage('discovery') {
steps {
sh 'docker build discovery-server/'
sh 'docker tag discovery-server:latest'
}
}
stage('movie-catalog') {
steps {
sh 'docker build movie-catalog-service/'
sh 'docker tag movie-catalog:latest'
}
}
stage('movie-info') {
steps {
sh 'docker build movie-info-service/'
sh 'docker tag movie-info:latest'
}
}
stage('ratings') {
steps {
sh 'docker build ratings-data-service/'
sh 'docker tag ratings:latest'
}
}
}
}
}
}