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

Getting this error when I try to run a build using Jenkins Pipline, following the "Deployments with Jenkins Pipeline" Lecture. Any idea what could be the reason?
  • post-author-pic
    Michael M
    09-27-2018

    Hi Salman,


    It is possible that you have a syntax error in the DSL, could you please post the contents of the file that you are using so that we can give it the once over and make sure that there is not an issue? 
    This is the most likely cause of the error that you are seeing and it is usually due to something in the parameters for the pipeline method. 

  • post-author-pic
    Salman S
    09-27-2018

    Thanks for the reply Michael. I didn't setup any DSL file, I forked the "https://github.com/linuxacademy/cicd-pipeline-train-schedule-cd" repo and am working with it. 

    Can you tell me from where can I get this file?

  • post-author-pic
    Salman S
    09-27-2018

    https://imgur.com/a/xAdtIpi screenshot of the Console Output

  • post-author-pic
    Salman S
    09-27-2018

    This got fixed.


    I had to install a plugin `Pipeline` and then when I reran the build it worked fine.

    Appreciate much.

  • post-author-pic
    Michael M
    09-27-2018

    Glad to know that you got it working, and thanks for letting us know the fix. This will also help others with the same issue!

Looking For Team Training?

Learn More