diff --git a/Jenkinsfile b/Jenkinsfile index 7116edf37..0ea738ceb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,24 @@ pipeline { } } + stage('Cred'){ + steps { + withCredentials([usernamePassword( + credentialsId: DOCKERHUB_CREDS, + //usernameVariable: '580b959d-d40a-422f-a3d7-cf11b2ec7a4cUsername' + // passwordVariable: '580b959d-d40a-422f-a3d7-cf11b2ec7a4cUsername' + usernameVariable: 'DOCKER_USER', + // passwordVariable: 'DOCKER_PASS' + )]) { + echo "Logging in to Docker Hub..." + sh "echo ${env.DOCKER_USER}" + // echo "Pushing Docker image to ${imageTag}" + // sh "docker push ${imageTag}" + } + + } + } + stage('Build') { steps { script {