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.

          [JENKINS-41530] Allow empty stages

          Andrew Bayer added a comment -

          Nah, we're gonna keep erroring on this.

          Andrew Bayer added a comment - Nah, we're gonna keep erroring on this.

          Liam Newman added a comment -

          Bulk closing resolved issues.

          Liam Newman added a comment - Bulk closing resolved issues.

            abayer Andrew Bayer
            kzantow Keith Zantow
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: