I'm trying to build pipeline using declarative pipeline by referring pipeline syntax .

      From this, I'm getting the following -

      WorkflowScript: 31: Unknown stage section "stages". Starting with version 0.5, steps in a stage must be in a steps block. @ line 31, column 17.
                         stage('Branch C') {
                         ^
      
      WorkflowScript: 31: No "steps" or "parallel" to execute within stage "Branch C" @ line 31, column 17.
                         stage('Branch C') {
                         ^
      
      2 errors
      
      	at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
      

      also from this -

      Running in Durability level: MAX_SURVIVABILITY
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      WorkflowScript: 14: Unknown stage section "stages". Starting with version 0.5, steps in a stage must be in a steps block. @ line 14, column 9.
                 stage('Sequential') {
                 ^
      
      WorkflowScript: 14: No "steps" or "parallel" to execute within stage "Sequential" @ line 14, column 9.
                 stage('Sequential') {
                 ^
      
      2 errors
      
      	at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)

          [JENKINS-55561] Stages within stage thoriwng error

          Shivu R H created issue -
          Shivu R H made changes -
          Epic Link New: JENKINS-48356 [ 186951 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-model-definition-plugin [ 21706 ]
          Component/s Original: pipeline [ 21692 ]
          Shivu R H made changes -
          Description Original: I'm trying to build pipeline using declarative pipeline by referring [pipeline syntax |https://jenkins.io/doc/book/pipeline/syntax/].

          From [this|https://jenkins.io/doc/book/pipeline/syntax/#parallel], I'm getting the following -
          {code:java}
          WorkflowScript: 31: Unknown stage section "stages". Starting with version 0.5, steps in a stage must be in a steps block. @ line 31, column 17.
                             stage('Branch C') {
                             ^

          WorkflowScript: 31: No "steps" or "parallel" to execute within stage "Branch C" @ line 31, column 17.
                             stage('Branch C') {
                             ^

          2 errors

          at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
          {code}
          also from [this |https://jenkins.io/doc/book/pipeline/syntax/#sequential-stages-example] -
          {code:java}
          Running in Durability level: MAX_SURVIVABILITY
          org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
          WorkflowScript: 14: Unknown stage section "stages". Starting with version 0.5, steps in a stage must be in a steps block. @ line 14, column 9.
                     stage('Sequential') {
                     ^

          WorkflowScript: 14: No "steps" or "parallel" to execute within stage "Sequential" @ line 14, column 9.
                     stage('Sequential') {
                     ^

          2 errors

          at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310){code}
          New: I'm trying to build pipeline using declarative pipeline by referring [pipeline syntax |https://jenkins.io/doc/book/pipeline/syntax/].

          From *[this|https://jenkins.io/doc/book/pipeline/syntax/#parallel]*, I'm getting the following -
          {code:java}
          WorkflowScript: 31: Unknown stage section "stages". Starting with version 0.5, steps in a stage must be in a steps block. @ line 31, column 17.
                             stage('Branch C') {
                             ^

          WorkflowScript: 31: No "steps" or "parallel" to execute within stage "Branch C" @ line 31, column 17.
                             stage('Branch C') {
                             ^

          2 errors

          at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
          {code}
          also from [this |https://jenkins.io/doc/book/pipeline/syntax/#sequential-stages-example] -
          {code:java}
          Running in Durability level: MAX_SURVIVABILITY
          org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
          WorkflowScript: 14: Unknown stage section "stages". Starting with version 0.5, steps in a stage must be in a steps block. @ line 14, column 9.
                     stage('Sequential') {
                     ^

          WorkflowScript: 14: No "steps" or "parallel" to execute within stage "Sequential" @ line 14, column 9.
                     stage('Sequential') {
                     ^

          2 errors

          at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310){code}

            Unassigned Unassigned
            shivurh Shivu R H
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: