-
Bug
-
Resolution: Unresolved
-
Major
-
None
This job attempts to:
- Take a parameter GAMESPARKS_CREDS_ID as creds
- Use Credentials Binding to convert the creds into an environment variable GAMESPARKS_CREDS that is the concatenation of username:password for use in a shell script
- Do so every 2 minutes
When triggered manually, it works fine. But when triggered by the timer, it fails with the following message:
FATAL: ${GAMESPARKS_CREDS_ID} org.jenkinsci.plugins.credentialsbinding.impl.CredentialNotFoundException: ${GAMESPARKS_CREDS_ID} at org.jenkinsci.plugins.credentialsbinding.MultiBinding.getCredentials(MultiBinding.java:124) at org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordBinding.bindSingle(UsernamePasswordBinding.java:50) at org.jenkinsci.plugins.credentialsbinding.Binding.bind(Binding.java:126) at org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper.setUp(SecretBuildWrapper.java:58) at hudson.model.Build$BuildExecution.doRun(Build.java:156) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1744) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Finished: FAILURE
If there's a better way to make credentials available in a build script, I'm open to that.
- is duplicated by
-
JENKINS-49822 credentialsbinding does not work with "build periodically"
- Resolved