jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-50526] Delete existing stash in a pipeline

Open
#456 2 comments 0 reactions 0 assignees View on GitHub
component:workflow-basic-steps-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
73
Forks
129
PR merge metrics
No merged PRs in 30d

Description

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 ?"
}

---
Originally reported by jguigui, imported from: Delete existing stash in a pipeline


  • status: Open
  • priority: Minor
  • component(s): workflow-basic-steps-plugin
  • resolution: Unresolved
  • votes: 4
  • watchers: 8
  • imported: 20251215-220547

Raw content of original issue

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 ?"
}


  • environment: Jenkins 2.113

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.