Delete existing stash in a pipeline

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

XMLWordPrintable

      After creating a stash, and using it, would need to be able to delete it before the end of the pipeline to free some resources, typically before waiting for user input:

      // code placeholder
      node {
        git checkout
        stash name: "source"
        
        parallel (
         task1: {
           node {
             unstash name: "sources"
             sh "make DEBUG=1"
           }
         },
      
         task2: {
           node {
             unstash name: "sources"
             sh "make DEBUG=0"
           }
         })
      
         deleteStash name: "sources"  // New feature: free disk space before the end of pipeline
         
         input message: "Go ?"
      }
      

            Assignee:
            Unassigned
            Reporter:
            Jean-Paul G
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: