-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
We should remove the requirement for stages to have steps. Despite being silly to do, is this really an invalid Jenkinsfile?
pipeline {
agent any
stages {
stage('Do nothing') { }
}
}
Right now, it fails with a message that there's "nothing to do". Similarly, the JSON validations include errors for stages that have no steps. But I don't know if it matters, it's not really an error, it's just the user doing something pointless. Adding an echo 'hello' is equally pointless.
Unless there's a technical reason there need to be steps, we should remove this validation.
Nah, we're gonna keep erroring on this.