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

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

    XMLWordPrintable

Details

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

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: