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
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -11,11 +11,11 @@ pipeline {
|
|||||||
beforeAgent true;
|
beforeAgent true;
|
||||||
branch 'main'
|
branch 'main'
|
||||||
}
|
}
|
||||||
environment {
|
|
||||||
DOCKER_HUB_CREDENTIALS = credentials('docker-hub-fah16145')
|
|
||||||
}
|
|
||||||
stages {
|
stages {
|
||||||
stage('Login') {
|
stage('Login') {
|
||||||
|
environment {
|
||||||
|
DOCKER_HUB_CREDENTIALS = credentials('docker-hub-fah16145')
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'docker login -u ${DOCKER_HUB_CREDENTIALS_USR} -p ${DOCKER_HUB_CREDENTIALS_PSW}'
|
sh 'docker login -u ${DOCKER_HUB_CREDENTIALS_USR} -p ${DOCKER_HUB_CREDENTIALS_PSW}'
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user