Is the "checkout scm" step necessary in multi-branch pipelines?

43 views
Skip to first unread message

Behrang

unread,
Mar 12, 2018, 8:50:53 AM3/12/18
to Jenkins Users
In my pipeline I don't have this step and everything is working fine, but most articles I see on the web have this step in their Jenkinsfile, for example this one from the official Jenkins web site: https://jenkins.io/blog/2015/12/03/pipeline-as-code-with-multibranch-workflows-in-jenkins/

Steven Foster

unread,
Mar 12, 2018, 9:03:49 AM3/12/18
to Jenkins Users
I think it's a feature of declarative syntax rather than multibranch. In declarative, every time a node is allocated it comes with a checkout scm by default.
Reply all
Reply to author
Forward
0 new messages