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

archive step sets result to FAILURE but does not fail the job

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins 1.625.2 LTS
    • Similar Issues:

      Description

      When no files matching the file mask are found, the archive workflow step as well as the general build step will set the result of the workflow to FAILURE but the build continues. The Step is not marked as failed in the "Workflow Steps" graph

      node('master') {
        archive "nonexistingdir/"
        step([$class: 'ArtifactArchiver', artifacts: 'nonexistingdir/', excludes: null])
      }
      

      Both steps are marked as SUCCESS, the overall build is marked as FAILED, though. There is no (error) message.

        Attachments

          Issue Links

            Activity

            gordin Christoph Vogtländer created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Component/s workflow-plugin [ 18820 ]
            Component/s core [ 15593 ]
            Labels workflow
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 167402 ] JNJira + In-Review [ 182713 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s core [ 15593 ]
            Component/s pipeline [ 21692 ]
            Labels pipeline
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-basic-steps PR 17 (Web Link)" [ 14780 ]
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-38005 [ JENKINS-38005 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            abayer Andrew Bayer made changes -
            Link This issue relates to JENKINS-46180 [ JENKINS-46180 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-47142 [ JENKINS-47142 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                gordin Christoph Vogtländer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: