Skip to content

Commit

Permalink
jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Lin committed Jul 19, 2018
1 parent a248661 commit 9db679f
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,24 +103,24 @@
}
}
}
// stage("Push Image"){
// when {
// branch 'develop'
// }
// steps {
// script {
// withCredentials([
// usernamePassword(
// credentialsId: 'eb1d8dd2-afd2-49d3-bbef-605de4f664d2',
// usernameVariable: 'DOCKER_USER',
// passwordVariable: 'DOCKER_PASS'
// )
// ]) {
// sh 'echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin'
// }
// docker.image("sdnvortex/vortex").push("develop")
// }
// }
// }
stage("Push Image"){
when {
branch 'develop'
}
steps {
script {
withCredentials([
usernamePassword(
credentialsId: 'eb1d8dd2-afd2-49d3-bbef-605de4f664d2',
usernameVariable: 'DOCKER_USER',
passwordVariable: 'DOCKER_PASS'
)
]) {
sh 'echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin'
}
docker.image("sdnvortex/vortex").push("develop")
}
}
}
}
}

0 comments on commit 9db679f

Please sign in to comment.