Make Docker HUB Creds local to Login Step
All checks were successful
andreas-personal/good-old-jenkins/pipeline/head This commit looks good
All checks were successful
andreas-personal/good-old-jenkins/pipeline/head This commit looks good
This commit is contained in:
parent
cdb18bf2a5
commit
046f87d27d
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -11,11 +11,11 @@ pipeline {
|
||||
beforeAgent true;
|
||||
branch 'main'
|
||||
}
|
||||
environment {
|
||||
DOCKER_HUB_CREDENTIALS = credentials('docker-hub-fah16145')
|
||||
}
|
||||
stages {
|
||||
stage('Login') {
|
||||
environment {
|
||||
DOCKER_HUB_CREDENTIALS = credentials('docker-hub-fah16145')
|
||||
}
|
||||
steps {
|
||||
sh 'docker login -u ${DOCKER_HUB_CREDENTIALS_USR} -p ${DOCKER_HUB_CREDENTIALS_PSW}'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user