Hi Guys
Looking for some assistant here:
stage('Get Terraform Repo') {
steps {
echo 'Getting Terraform Repo....'
checkout scm
withCredentials([[$class: 'UsernamePasswordMultiBinding',
credentialsId: 'devops_user_password', usernameVariable: 'USERNAME',
passwordVariable: 'PASSWORD']])
{
echo USERNAME
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
userRemoteConfigs: [[url:
'https://[email protected]/username/cc_terraform_aws.git',credentialsId:PASSWORD]]])
}
}
}
This always give me:
stderr: fatal: Authentication failed for
'https://gitlab.company.com/username/cc_terraform_aws.git/'
When configuring the Pipeline for the "checkout scm" I put the same url
(different project) and the same credentialsId and it works but on the second
scm it doesn't work because of credentials.
BR
Jo
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/c814ba83afbe4d0fa283937c9fc296b8%40BSKEXCH2013HYPV.mwrinfosecurity.com.
For more options, visit https://groups.google.com/d/optout.