Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39739

NPE when using a credentials parameter with multi-configuration project

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • matrix-project-plugin
    • None
    • Jenkins 1.609.3
      matrix-project-plugin 1.7.1
      credentials plugin 2.1.4

    Description

      Steps to reproduce:

      • create multi-configuration project with axis "Slaves"
      • add build parameter of type "Credentials Parameter"
      • add minimal build step, e.g. execute shell "echo HOWDY"
      • build project using some credential

      Resulting console output:
      Started by user t761
      [EnvInject] - Loading node environment variables.
      Building remotely on Slave_extend_SEU_Linux3_Slk (Slk_Linux) in workspace /home/hudrun/slave3_jenkins.eng.zkb.ch_produktiv/workspace/0195-SLK-GKKKK-ReferenceRepo
      FATAL: null
      java.lang.NullPointerException
      at com.cloudbees.plugins.credentials.CredentialsParameterValue.lookupCredentials(CredentialsParameterValue.java:98)
      at com.cloudbees.plugins.credentials.CredentialsParameterValue.lookupCredentials(CredentialsParameterValue.java:92)
      at com.cloudbees.plugins.credentials.CredentialsParameterValue.createVariableResolver(CredentialsParameterValue.java:74)
      at hudson.matrix.FilterScript.getConfiguredBinding(FilterScript.java:97)
      at hudson.matrix.FilterScript.apply(FilterScript.java:75)
      at hudson.matrix.DefaultMatrixExecutionStrategyImpl.filterConfigurations(DefaultMatrixExecutionStrategyImpl.java:190)
      at hudson.matrix.DefaultMatrixExecutionStrategyImpl.run(DefaultMatrixExecutionStrategyImpl.java:121)
      at hudson.matrix.MatrixBuild$MatrixBuildExecution.doRun(MatrixBuild.java:364)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.matrix.MatrixBuild.run(MatrixBuild.java:313)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:381)
      Finished: FAILURE

      Attachments

        Activity

          rschupp Roderich Schupp created issue -
          ozaika Alexander Z made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          ozaika Alexander Z made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          ozaika Alexander Z made changes -
          Component/s credentials-plugin [ 16523 ]
          ozaika Alexander Z made changes -
          Assignee Kohsuke Kawaguchi [ kohsuke ] Stephen Connolly [ stephenconnolly ]
          stephenconnolly Stephen Connolly made changes -
          Component/s credentials-plugin [ 16523 ]
          stephenconnolly Stephen Connolly made changes -
          Assignee Stephen Connolly [ stephenconnolly ] Kohsuke Kawaguchi [ kohsuke ]
          oleg_nenashev Oleg Nenashev made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

          People

            kohsuke Kohsuke Kawaguchi
            rschupp Roderich Schupp
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: