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

Files uploaded via Fileparameter is not available in matrix jobs and throws NPE

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • matrix-project-plugin
    • None
    • LINUX

      Have a mtrix job with more than one Fileparameters and upload 2 files on run time. The job thows NPE when you try to access the file uploaded. With one fileparameter it works but from 2 it fails.
      FATAL: null
      java.lang.NullPointerException
      at hudson.model.FileParameterValue$1.setUp(FileParameterValue.java:105)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:133)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:423)
      at hudson.model.Run.run(Run.java:1362)
      at hudson.matrix.MatrixRun.run(MatrixRun.java:137)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)

          [JENKINS-10108] Files uploaded via Fileparameter is not available in matrix jobs and throws NPE

          kokawa added a comment -

          Why is this issue assigned to me?

          kokawa added a comment - Why is this issue assigned to me?

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/model/FileParameterValue.java
          test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy
          http://jenkins-ci.org/commit/jenkins/47bc6d38c72f31babf2d453e87ccdf4c40f1f2a5
          Log:
          [FIXED JENKINS-10108] File parameter didn't work correctly with matrix
          projects.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/model/FileParameterValue.java test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy http://jenkins-ci.org/commit/jenkins/47bc6d38c72f31babf2d453e87ccdf4c40f1f2a5 Log: [FIXED JENKINS-10108] File parameter didn't work correctly with matrix projects.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #924
          [FIXED JENKINS-10108] File parameter didn't work correctly with matrix

          Kohsuke Kawaguchi : 47bc6d38c72f31babf2d453e87ccdf4c40f1f2a5
          Files :

          • changelog.html
          • test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy
          • core/src/main/java/hudson/model/FileParameterValue.java

          dogfood added a comment - Integrated in jenkins_main_trunk #924 [FIXED JENKINS-10108] File parameter didn't work correctly with matrix Kohsuke Kawaguchi : 47bc6d38c72f31babf2d453e87ccdf4c40f1f2a5 Files : changelog.html test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy core/src/main/java/hudson/model/FileParameterValue.java

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/model/FileParameterValue.java
          test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy
          http://jenkins-ci.org/commit/jenkins/47bc6d38c72f31babf2d453e87ccdf4c40f1f2a5
          Log:
          [FIXED JENKINS-10108] File parameter didn't work correctly with matrix
          projects.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/model/FileParameterValue.java test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy http://jenkins-ci.org/commit/jenkins/47bc6d38c72f31babf2d453e87ccdf4c40f1f2a5 Log: [FIXED JENKINS-10108] File parameter didn't work correctly with matrix projects.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/model/FileParameterValue.java
          test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy
          http://jenkins-ci.org/commit/jenkins/47bc6d38c72f31babf2d453e87ccdf4c40f1f2a5
          Log:
          [FIXED JENKINS-10108] File parameter didn't work correctly with matrix
          projects.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/model/FileParameterValue.java test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy http://jenkins-ci.org/commit/jenkins/47bc6d38c72f31babf2d453e87ccdf4c40f1f2a5 Log: [FIXED JENKINS-10108] File parameter didn't work correctly with matrix projects.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy
          http://jenkins-ci.org/commit/matrix-project-plugin/c9902c7b8254f1cac88bda55323f122c101ca696
          Log:
          [FIXED JENKINS-10108] File parameter didn't work correctly with matrix
          projects.

          Originally-Committed-As: 47bc6d38c72f31babf2d453e87ccdf4c40f1f2a5

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: test/src/test/groovy/hudson/matrix/MatrixProjectTest.groovy http://jenkins-ci.org/commit/matrix-project-plugin/c9902c7b8254f1cac88bda55323f122c101ca696 Log: [FIXED JENKINS-10108] File parameter didn't work correctly with matrix projects. Originally-Committed-As: 47bc6d38c72f31babf2d453e87ccdf4c40f1f2a5

            Unassigned Unassigned
            ragesh_nair ragesh_nair
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: