As an alternative to JENKINS-37327 it would be useful to be able to skip creating a stash altogether rather than creating an empty stash if the specified files do not exist.

       

          [JENKINS-70211] Only create stash if files exist

          Vandit Singh added a comment -

          Hey i would like to work on this. can you help me. from where should i start ?

           

          Vandit Singh added a comment - Hey i would like to work on this. can you help me. from where should i start ?  

          Jean-Luc Pé added a comment -

          I would say that stash should fail (or optionnally) if not all files referenced in the includes field are present. And as far as possible, if includes is configured with something like:
          includes: "titi,toto*.*"
          and titi is found but no file exist with pattern toto*.*, stash should also fail.

          Jean-Luc Pé added a comment - I would say that stash should fail (or optionnally) if not all files referenced in the includes field are present. And as far as possible, if includes is configured with something like: includes: "titi,toto*.*" and titi is found but no file exist with pattern toto*.* , stash should also fail.

            Unassigned Unassigned
            brianjmurrell Brian J Murrell
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: