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

Build step returns null if propagate set to true

      When running a build from another job and setting the propagate property to true, if the downstream job fails, the returned value is null.

      For example, if I want to copy the artifacts and I use returnValue.getNumber(), I get the error message:
      java.lang.NullPointerException: Cannot invoke method getNumber() on null object

          [JENKINS-48475] Build step returns null if propagate set to true

          Gil Shinar created issue -
          Andrew Bayer made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          vadim sluzky made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Jesse Glick made changes -
          Issue Type Original: Bug [ 1 ] New: Improvement [ 4 ]
          Markus Kurde made changes -
          Link New: This issue relates to JENKINS-53923 [ JENKINS-53923 ]

            Unassigned Unassigned
            gils Gil Shinar
            Votes:
            3 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: