I have a problem with passing credentials to Jenkin's job during the scheduled build with parameters. The parameter is required and it has default value. When I execute the job manually everything works ok, but during scheduled execution when I try to pass different credential than the default, it finishes with fail and message:
ERROR: Could not find credentials entry with ID '${TEST}'
Parameters I passing:
H 5 * * * % TEST=CREDENTIAL_TEST_ID
Credential parameter Binding credentials
Does it possible to use the credentials parameter in scheduled build, or I do something in wrong way?
I am facing the same issue and found https://issues.jenkins.io/browse/JENKINS-32402. The only "solution" currently seems to be to give user 'Anonymous' permission for 'Configure Job'. This way I was able to workaround this issue, but looking for better solutions.
In Manage Jenkins -> Configure Global Security
, toward the middle of page there's a section called Access Control For Builds
. Set the Strategy
to Run as SYSTEM
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With