In my jenkins project project, I can check the code from git fine ... but we need to do some git checks, and the credentials do not seem to be cached.
stage 'Checkout' git url: ' git@bitbucket.org :myproj.git', branch: 'master', credentialsId: '012ce21d-e920-44ee-b6f7-08df8ab41de0', variable: 'CREDENTIALS' sh('git push') <---- fails with Permission denied (public key).
Here is an example output:
Entering stage Checkout Proceeding [Pipeline] git > git rev-parse --is-inside-work-tree
Who has a good solution?
thanks
git jenkins jenkins-pipeline
phil swenson
source share