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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • pipeline
    • Jenkins ver. 2.19.4

      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.

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

              Created:
              Updated:
              Resolved: