Hi I'm having trouble using *scm checkout* in a really basic pipeline configuration. I wonder if anyone could please help me spot my schoolboy error:
I have a sample github project here: https://github.com/bmrussell/pipelinetest with a small Jenkinsfile: stage 'CI' node { echo 'Checking out...' scm checkout echo 'Checked out.' dir currentBuild.result = 'SUCCESS' } The pipeline job is just configured as Pipeline Script from SCM, giving https://github.com/bmrussell/pipelinetest.git with everything else as default. When built this gives Obtained Jenkinsfile from git https://github.com/bmrussell/pipelinetest.git [Pipeline] stage (CI) Using the ‘stage’ step without a block argument is deprecated Entering stage CI Proceeding [Pipeline] node Running on master in C:\Users\Brian\.jenkins\workspace\pipeline-test [Pipeline] { [Pipeline] echo Checking out... [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline groovy.lang.MissingPropertyException: No such property: checkout for class: groovy.lang.Binding at groovy.lang.Binding.getVariable(Binding.java:63) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:224) Does anyone have any ideas?... thanks in advance. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1ddf6112-a9f9-47f7-a544-8320ff9133e2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.