This commit is contained in:
work 2025-02-05 19:36:51 +01:00
parent 9b94ce1d76
commit b405366dfa

9
Jenkinsfile vendored
View file

@ -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 {