Commit 445a5ac5 authored by Serdar TURKEL's avatar Serdar TURKEL

docker image name changed

parent 8933cc37
...@@ -32,7 +32,13 @@ pipeline { ...@@ -32,7 +32,13 @@ pipeline {
sh 'mvn dependency:tree -Dverbose -B -DskipTests clean package' sh 'mvn dependency:tree -Dverbose -B -DskipTests clean package'
} }
} }
stage("Nexus") { stage('Docker Build') {
steps {
sh 'which docker'
sh 'docker build -t springtemplate:latest .'
}
}
stage("Deploy 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
...@@ -68,11 +74,5 @@ pipeline { ...@@ -68,11 +74,5 @@ pipeline {
} }
} }
} }
stage('Docker Image') {
steps {
sh 'which docker'
sh 'docker build -t localhost:5000/springtemplate:latest .'
}
}
} }
} }
\ No newline at end of file
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