jenkinsci / jenkinsci/workflow-basic-steps-plugin
[JENKINS-48668] Add unstash option to continue on failure
- Lingua principale
- Java
- Stelle
- 73
- Fork
- 129
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The following applies only to the declarative pipeline.
For the moment, there is only the name option for the unstash step.
I would like to have an extra option for the unstash step like ignoreFailures=false|true, by default on false to be backward compatible.
This extra option helps a lot when testing or using when conditionals on the pipeline stages, as there might be a stage before the unstash that actually does the stash, but the code in the step after the unstash can fallback to defaults if it cannot find the unstashed file.
It would be okay if, for example, the whole build can be made unstable if the unstash fails.
For the moment there is no way to continue it in the declarative pipeline (as the try/catch) is not supported.
---
Originally reported by ader1990, imported from: Add unstash option to continue on failure
Raw content of original issue
The following applies only to the declarative pipeline.
For the moment, there is only the name option for the unstash step.
I would like to have an extra option for the unstash step like ignoreFailures=false|true, by default on false to be backward compatible.
This extra option helps a lot when testing or using when conditionals on the pipeline stages, as there might be a stage before the unstash that actually does the stash, but the code in the step after the unstash can fallback to defaults if it cannot find the unstashed file.
It would be okay if, for example, the whole build can be made unstable if the unstash fails.
For the moment there is no way to continue it in the declarative pipeline (as the try/catch) is not supported.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by locating the unstash step implementation and its related tests in the workflow-basic-steps-plugin, then inspect how failures are reported in declarative pipelines. Done means an optional ignoreFailures setting preserves the current default behavior, permits continuation when enabled, and has coverage for successful and missing-stash cases.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- ci-cd, devops
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100