jenkinsci / jenkinsci/workflow-api-plugin

[JENKINS-47751] Add option to list all stashes

Open
#491 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-api-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
31
Forks
80
Avg merge
1d 16h
Merged PRs (30d)
1

Description

In scripted pipelines, it will be verry welcome to have access to some kind of mapping/list (like env) for stashes.

This is because I want to improve my dynamic stashing of files

 

verry small example

 

if(stash.debugbuild) {

unstash "debugbuild"
} else {
unstash "releasebuild"
}


 

---
Originally reported by roel0, imported from: Add option to list all stashes


  • status: Open
  • priority: Minor
  • component(s): workflow-api-plugin
  • label(s): stash
  • resolution: Unresolved
  • votes: 4
  • watchers: 4
  • imported: 20260601-173816

Raw content of original issue

In scripted pipelines, it will be verry welcome to have access to some kind of mapping/list (like env) for stashes.

This is because I want to improve my dynamic stashing of files

 

verry small example

 



if(stash.debugbuild) {

unstash "debugbuild"
} else {
unstash "releasebuild"
}



 

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.