0

I am using Jenkins version 2.528.3 with Parameterized Trigger plugin (Version873.v8b_e37dd8418f).

I have a job (free style) (JOB A) which is parameterized to accept credential parameter of type secret text. Parameter name is "DB_CONNECTION_STRING". In the environment section I have enabled "Use secret text(s) or file(s)" and have a binding for Secret Text. Variable is "DB_CON", credential is Parameter expression "${DB_CONNECTION_STRING}". In the build section I am excuting a shell script which uses the varable "$DB_CON".

There is another job (JOB B) which is triggerd to build periodically. In the build steps there is "Trigger/call builds on other projects" with projects to build pointing to the above job (JOB A). It also has predefined parameters, "DB_CONNECTION_STRING=<some db connection URL>".

When I trigger JOB B manually, everything is successful.

But when the JOB B is triggered by the timer, there is an error in JOB A log,
ERROR: Could not find credentials entry with ID '${DB_CONNECTION_STRING}'

Appreciate help in figuring out what is going on and fix.

1
  • I managed to get this fixed by defining the downstream project as a pipeline project. Commented Dec 24, 2025 at 18:19

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.