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

java.lang.NullPointerException when archive the artifacts as a conditional step (single or multiple)

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Reproduces on linux/mac/windows environment.
      Reproduces on both: mastres and slaves.
      Jenkins version: 1.568
    • Similar Issues:

      Description

      Have following config (see attached )

      Build fails with following log:

      Run condition [Always] enabling perform for step [Archive the artifacts]
      FATAL: null
      java.lang.NullPointerException
      at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:143)
      at org.jenkins_ci.plugins.run_condition.BuildStepRunner$2.run(BuildStepRunner.java:110)
      at org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail.conditionalRun(BuildStepRunner.java:154)
      at org.jenkins_ci.plugins.run_condition.BuildStepRunner.perform(BuildStepRunner.java:105)
      at org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder.perform(SingleConditionalBuilder.java:108)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535)
      at hudson.model.Run.execute(Run.java:1732)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:234)

      I have also found that issue was introduced int Jenkins v. 1.567

        Attachments

          Issue Links

            Activity

            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3478
            [FIXED JENKINS-23526] Tolerate 'null' result when used creatively (Revision e2cebef67b20bea9b7f3653f649481a99f049f48)

            Result = SUCCESS
            daniel-beck : e2cebef67b20bea9b7f3653f649481a99f049f48
            Files :

            • core/src/main/java/hudson/tasks/ArtifactArchiver.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3478 [FIXED JENKINS-23526] Tolerate 'null' result when used creatively (Revision e2cebef67b20bea9b7f3653f649481a99f049f48) Result = SUCCESS daniel-beck : e2cebef67b20bea9b7f3653f649481a99f049f48 Files : core/src/main/java/hudson/tasks/ArtifactArchiver.java
            Hide
            danielbeck Daniel Beck added a comment -

            LTS candidate only if JENKINS-22699 is also included.

            Show
            danielbeck Daniel Beck added a comment - LTS candidate only if JENKINS-22699 is also included.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            JENKINS-22699 is a new feature. I suppose it won't be backported

            Show
            oleg_nenashev Oleg Nenashev added a comment - JENKINS-22699 is a new feature. I suppose it won't be backported
            Hide
            danielbeck Daniel Beck added a comment -

            Depends on whether 1.565 or 1.567 gets to be the baseline.

            Show
            danielbeck Daniel Beck added a comment - Depends on whether 1.565 or 1.567 gets to be the baseline.
            Hide
            danielbeck Daniel Beck added a comment -

            1.565.x it is.

            Show
            danielbeck Daniel Beck added a comment - 1.565.x it is.

              People

              • Assignee:
                danielbeck Daniel Beck
                Reporter:
                a_eroma Alexander Eroma
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: