forked from cloud-blitz/angular-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjenkins.jdp
More file actions
31 lines (25 loc) · 742 Bytes
/
jenkins.jdp
File metadata and controls
31 lines (25 loc) · 742 Bytes
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
pipeline {
agent any
stages{
stage('pull'){
steps{
git branch: 'main', url: 'https://github.com/mayurmwagh/B5-B16-B14-combine-backend.git'
}
}
stage('build'){
steps{
sh 'mvn clean package'
}
}
stage('deploy'){
steps{
sh '''
docker build . -t mayurwagh/combine-backend51416:latest
docker push mayurwagh/combine-backend51416:latest
docker rmi mayurwagh/combine-backend51416:latest
kubectl apply -f ./yaml/
'''
}
}
}
}