There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • [JIRA] (JENKINS-36470) Parameter Expression throws CredentialNotFoundException
    via by (JIRA),
  • When configuring a job with credentials binding the 'specific credentials' do work but when I try to use the 'parameter expression' it always fails with the following message: {code} [EnvInject] - Loading node environment variables. [EnvInject] - Preparing an environment for the build. [EnvInject] - Keeping Jenkins system variables. [EnvInject] - Keeping Jenkins build variables. [EnvInject] - Evaluation the following Groovy script content: println "secret_file_id:" + secret_file_id secret_file_id:keystore [EnvInject] - Injecting contributions. Building on master in workspace /var/lib/jenkins/workspace/Credential-binding-parameter-expression FATAL: ${secret_file_id} org.jenkinsci.plugins.credentialsbinding.impl.CredentialNotFoundException: ${secret_file_id} at org.jenkinsci.plugins.credentialsbinding.MultiBinding.getCredentials( at org.jenkinsci.plugins.credentialsbinding.impl.FileBinding.bindSingle( at org.jenkinsci.plugins.credentialsbinding.Binding.bind( at org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper.setUp( at hudson.model.Build$BuildExecution.doRun( at hudson.model.AbstractBuild$ at hudson.model.Run.execute( at at hudson.model.ResourceController.execute( at Finished: FAILURE {code} As shown in config-attachment the referenced secret file (ID: 'keystore') is found when using the specific credentials option. When I try to load it dynamically with the parameter expression using ${secret_file_id} the exception is thrown. I've spend a fair amount of time testing with different settings for credentials and plugin versions but none fixed my issue. I've attached an example job configuration that mimics my issue. Basically the one I'm trying to achieve is a job that based upon a parameter builds and signs an Android app. The parameter is either supplied through a properties file inside a git repo or by making the build 'parameterized'. Any help would be appreciated! Cheers, Erik
    via by Erik The Other Wizzard,
    • org.jenkinsci.plugins.credentialsbinding.impl.CredentialNotFoundException: bc047678-37b8-4747-95d8-c1a8b3df51a6 at org.jenkinsci.plugins.credentialsbinding.MultiBinding.getCredentials( at org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding.bind( at org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Execution.start(
    No Bugmate found.