mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-28 05:49:37 +00:00
sdasd
This commit is contained in:
parent
9b94ce1d76
commit
b405366dfa
1 changed files with 9 additions and 0 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -37,6 +37,15 @@ stage('Login to dockerhub') {
|
|||
}
|
||||
}
|
||||
}
|
||||
stage('Login to Nexus') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'nexus-credentials',
|
||||
usernameVariable: 'NEXUS_USER',
|
||||
passwordVariable: 'NEXUS_PASS')]) {
|
||||
sh 'echo $NEXUS_PASS | docker login $registry -u $NEXUS_USER --password-stdin'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Push') {
|
||||
steps {
|
||||
|
|
Loading…
Reference in a new issue