java.lang.NoSuchMethodError: No such DSL method 'pipeline' found error

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I am getting the above error while running sample script on a project.I am adding that sample script :

      pipeline \{
       agent any
      
      stages \{
       stage('Build') \{
       steps \{
       echo 'Building..'
       }
       }
       stage('Test') \{
       steps \{
       echo 'Testing..'
       }
       }
       stage('Deploy') \{
       steps \{
       echo 'Deploying....'
       }
       }
       }
      }
      

      Please check and let me know

            Assignee:
            Unassigned
            Reporter:
            harish guntha
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: