-
Bug
-
Resolution: Not A Defect
-
Minor
-
Pipeline declarative: 1.2.2
Docs https://jenkins.io/doc/book/pipeline/syntax/ declare retry is allowed at stage level, but I get:
WorkflowScript: 52: Unknown stage section "options". Starting with version 0.5, steps in a stage must be in a steps block. @ line 52, column 5.
stage('test') {
^
when doing:
stage('test') {
options {
// TODO: Fix - some tests are flaky - sometimes pass, sometimes not
retry(3)
}
steps {
runCompose( 'test' )
}
}