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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Unassigned
            Reporter:
            Christoph Vogtländer
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: