Commit 99f53a88 authored by Serdar TURKEL's avatar Serdar TURKEL

docker push

parent b070b1b4
...@@ -34,11 +34,20 @@ pipeline { ...@@ -34,11 +34,20 @@ pipeline {
} }
stage('Docker Build') { stage('Docker Build') {
steps { steps {
sh 'which docker'
sh 'docker build -t springtemplate:latest .' sh 'docker build -t springtemplate:latest .'
} }
} }
stage("Deploy Nexus") { stage('Docker Tag') {
steps {
sh 'docker tag springtemplate:latest docker.inity.com.tr/springtemplate:latest .'
}
}
stage('Docker Push') {
steps {
sh 'docker push docker.inity.com.tr/springtemplate:latest'
}
}
stage("Deploy to Nexus") {
steps { steps {
script { script {
// Read POM xml file using 'readMavenPom' step , this step 'readMavenPom' is included in: https://plugins.jenkins.io/pipeline-utility-steps // Read POM xml file using 'readMavenPom' step , this step 'readMavenPom' is included in: https://plugins.jenkins.io/pipeline-utility-steps
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment