Open kneirinck opened 9 months ago
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅
I have read the CLA Document and I hereby sign the CLA
@yahavi could you re-add the safe to test label? Seems it got removed because of my (force) push
When using the authorize-project plugin and restricting a job to run as a specific user,
rtUpload
fails to retrieve the stored credentials. This happens for both a globally defined server as well as a locally defined server withrtServer
.After quite a bit of digging I found out that it's related to not using the
Run
context to access/find credentials. This PR changes the credential retrieval in as many places as possible to use aRun
context if available and applicable.It's inspired by https://github.com/jenkinsci/docker-commons-plugin/pull/68#pullrequestreview-220710089 This fixes #247
[x] All static analysis checks passed.