Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Could not find credentials entry with ID '${TEST}'

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?

like image 258
MMierzynski Avatar asked Sep 01 '25 10:09

MMierzynski


2 Answers

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.

like image 164
mwanck Avatar answered Sep 04 '25 08:09

mwanck


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.

like image 42
Chris F Avatar answered Sep 04 '25 07:09

Chris F