jenkinsci / jenkinsci/workflow-basic-steps-plugin
[JENKINS-41393] Add time interval parameters to timeout step
- Lingua principale
- Java
- Stelle
- 73
- Fork
- 129
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I'm not sure where the timeout step is defined, but it would be nice if it had some more intuitive parameters.
Currrently, it offers time and units.
options {
timeout time: 5, units: 'MINUTES'
}
Since Groovy and Jenkins both provide for optional parameters we should provide parameters to make this simpler to write:
options {
timeout minutes: 5
}
This could also allow for combining of parameters:
options {
timeout hours: 2, minutes: 15
}
---
Originally reported by
bitwiseman, imported from: Add time interval parameters to timeout step
Raw content of original issue
I'm not sure where the timeout step is defined, but it would be nice if it had some more intuitive parameters.
Currrently, it offers time and units.
options {
timeout time: 5, units: 'MINUTES'
}Since Groovy and Jenkins both provide for optional parameters we should provide parameters to make this simpler to write:
options {
timeout minutes: 5
}This could also allow for combining of parameters:
options {
timeout hours: 2, minutes: 15
}
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
La issue riguarda il passaggio di timeout in workflow-basic-steps-plugin, ma non indica alcun file sorgente né alcun test. Inizia individuando quel passaggio e la gestione esistente di tempo e unità; il lavoro è completo quando sono supportati il parametro minutes e il formato combinato di ore e minuti mostrato negli esempi, con test che coprano questo comportamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- groovy, 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
- 30/100