Of course the underlying problem is staring at something too long...

*checkout scm* not *scm checkout*

time for a beer...



On Sunday, 12 March 2017 20:03:50 UTC, bri.m.russell wrote:

> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7d78bb45-0fc5-47ca-b89c-f307f927ac67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to