-
Notifications
You must be signed in to change notification settings - Fork 74
/
Jenkinsfile
30 lines (29 loc) · 907 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
node{
stage("Git clone"){
git credentialsId: 'GITHUB_CREDENTIALS', url: 'https://github.com/surjeetkm/multiproject.git'
}
stage("Maven clean build artifact"){
def mavenHome= tool name: "Maven", type: "maven"
def command= "${mavenHome}/bin/mvn"
sh "${command} clean install"
}
stage("Run Junit and Integration Test cases"){}
stage('Caller-service image') {
dir ('caller-service') {
app=docker.build("microservices-2020/caller-service")
docker.withRegistry('https://eu.gcr.io', 'gcr:myregistry') {
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
}
}
stage("callme image"){
dir ('callme-service') {
app=docker.build("microservices-2020/callme-service")
docker.withRegistry('https://eu.gcr.io', 'gcr:myregistry') {
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
}
}
}