File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -18,23 +18,23 @@ pipeline {
18
18
}
19
19
}
20
20
stage(" Dockerize Application" ){
21
- steps {
22
- bat ' docker build . -t lennonjansuy/webapp:dev'
23
- bat ' docker images'
24
- }
25
- }
26
- stage(" Push To DockerHub" ){
27
21
steps {
28
22
withCredentials ([
29
23
usernamePassword(credentialsId : ' docker-cred' ,
30
24
usernameVariable : " USERNAME" ,
31
25
passwordVariable : " PASSWORD"
32
26
)]) {
33
27
bat " docker login --username $USERNAME --password $PASSWORD "
34
- bat ' docker push lennonjansuy/webapp:dev'
28
+ bat ' docker build . -t lennonjansuy/webapp:dev'
29
+ bat ' docker images'
35
30
}
36
31
}
37
32
}
33
+ stage(" Push To DockerHub" ){
34
+ steps {
35
+ bat ' docker push lennonjansuy/webapp:dev'
36
+ }
37
+ }
38
38
stage(" Push To Github (Clone build to other repo)" ){
39
39
steps {
40
40
withCredentials([gitUsernamePassword(credentialsId : ' gh-cred' , gitToolName : ' Default' )]) {
You can’t perform that action at this time.
0 commit comments