Commit 2bd25968 authored by Serdar TURKEL's avatar Serdar TURKEL

docker push x1

parent c00eb855
...@@ -47,7 +47,17 @@ pipeline { ...@@ -47,7 +47,17 @@ pipeline {
sh 'docker push docker.inity.com.tr/springtemplate:latest' sh 'docker push docker.inity.com.tr/springtemplate:latest'
} }
} }
stage("Deploy to Nexus") { stage('Docker push') {
steps {
script {
withCredentials([usernamePassword(credentialsId: 'Nexus', usernameVariable: 'USERNAME', passwordVariable: 'USERPASS')]) {
sh 'docker login --username $USERNAME --password $USERPASS docker.inity.com.tr'
sh 'docker push docker.inity.com.tr:9001/springtemplate:latest'
}
}
}
}
stage("Deploy Jar 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