-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
29 lines (29 loc) · 813 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
pipeline{
agent any
tools{
maven 'Maven_3_9_2'
}
stages{
stage('Build Maven'){
steps{
git url: 'https://github.com/akshataxx/Prime-Number-Generator-SpringBoot-Pub-Sub-Queue', branch: 'master'
bat 'mvn clean install'
}
}
stage('Build docker image'){
steps{
script{
bat 'docker build -t akshataxx/springboot-app:v7 . '
}
}
}
stage('Push image to hub'){
steps{
script{
bat 'docker login --username akshataxx --password dckr_pat_B_ed4Ylrb4dQG5n_D2RP9dtNHEc'
bat 'docker push akshataxx/springboot-app:v7'
}
}
}
}
}