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

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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • Jenkins 1.625.2 LTS

      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.

          [JENKINS-31931] archive step sets result to FAILURE but does not fail the job

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

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

              Created:
              Updated:
              Resolved: