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

Conditional BuildStep Fails Build with NullPointerException

      I set up a conditional build step to run a 'Clean' target once a week on our nightly build. The night following the successful clean failed with a NullPointerException:

      Exception caught evaluating condition: [java.lang.NullPointerException: null], action = [Fail the build]
      Build step 'Conditional step (single)' changed build result to FAILURE
      Build step 'Conditional step (single)' marked build as failure
      [locks-and-latches] Releasing all the locks
      [locks-and-latches] All the locks released
      Archiving artifacts

      I have not been able to initiate a successful build since this first occurred. The same error prevents all subsequent tasks from initiating.

          [JENKINS-14693] Conditional BuildStep Fails Build with NullPointerException

          do you have any additional log files to this?
          e.g. from master, slave?

          Dominik Bartholdi added a comment - do you have any additional log files to this? e.g. from master, slave?

          Loren Keagle added a comment -

          Unfortunately no logs are available for the job, as we only keep 14 of the last nightly builds and the failed build is gone. I don't see anything in the master log either, but it only seems to go back 7 days.

          I worked around the issue by removing the conditional step and re-adding it from scratch. I haven't seen a failure since.

          Also, no slaves in this setup - this error occurred on the master.

          Loren Keagle added a comment - Unfortunately no logs are available for the job, as we only keep 14 of the last nightly builds and the failed build is gone. I don't see anything in the master log either, but it only seems to go back 7 days. I worked around the issue by removing the conditional step and re-adding it from scratch. I haven't seen a failure since. Also, no slaves in this setup - this error occurred on the master.

            bap bap
            lkeagle Loren Keagle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: