archive step does not fail on missing/invalid file patterns

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: pipeline
    • None
    • Pipeline - December

      I know the archive step is deprecated, but many users still use it, and are frustrated when it doesn't fail appropriately on user errors. (I can point somebody at CloudBees to some internal support tickets if they need more convincing )

      node {
          archive 'nonexistent.txt'
      }
      

      Results in no failure, warning, just a silent success:

      Started by user admin
      [Pipeline] node
      Running on master in /var/jenkins_home/workspace/vlad-the-archiver
      [Pipeline] {
      [Pipeline] archive
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      Finished: SUCCESS
      

            Assignee:
            Andrew Bayer
            Reporter:
            R. Tyler Croy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: