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

With Pipeline, "archive" sets build status to failure, on empty, but doesn't report / log anything

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: pipeline
    • Labels:
    • Environment:
      Jenkins ver. 2.19.4
    • Similar Issues:

      Description

      Using the below sample code:

      node {
          println "[currentBuild] ${currentBuild.result}"
          archiveArtifacts "packages/*.*"
          println "[currentBuild] ${currentBuild.result}"
      }
      

      You get the output,

      [Pipeline] node
      Running on master
      [Pipeline] {
      [Pipeline] echo
      [currentBuild] null
      [Pipeline] step
      Archiving artifacts
      [Pipeline] echo
      [currentBuild] FAILURE
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      Finished: FAILURE
      

      And in the pipeline steps,

      Without manual printouts about where something is failing, you get no information about what is failing where, nor why. For something as pivotal as the artifact archiver, part of core Jenkins, having this behaviour is really, really poor and has already cost us days trying to figure out what's going on in our very big, very time consuming build.

        Attachments

          Issue Links

            Activity

            Hide
            rtyler R. Tyler Croy added a comment -

            I believe this is the same as JENKINS-38005, which has been fixed in recent releases.

            Show
            rtyler R. Tyler Croy added a comment - I believe this is the same as JENKINS-38005 , which has been fixed in recent releases.

              People

              • Assignee:
                Unassigned
                Reporter:
                seaders seaders
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: