jenkinsci / jenkinsci/workflow-basic-steps-plugin
[JENKINS-50526] Delete existing stash in a pipeline
- 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
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
Assessment
This issue has not been assessed yet.