Advertisement
jimklimov

Jenkins SCM with ref repos

Feb 16th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.82 KB | None | 0 0
  1.         checkout([
  2.             $class: 'GitSCM',
  3.             branches: scm.branches,
  4.             doGenerateSubmoduleConfigurations: false,
  5.             extensions: scm.extensions + [
  6.                 [
  7.                     $class: 'SubmoduleOption',
  8.                     disableSubmodules: false,
  9.                     parentCredentials: true,
  10.                     recursiveSubmodules: false,
  11.                     reference: '/cache/submodules',
  12.                     trackingSubmodules: false
  13.                 ], [
  14.                     $class: 'CloneOption',
  15.                     depth: 50,
  16.                     noTags: false,
  17.                     reference: '/cache/repo',
  18.                     shallow: false
  19.                 ]
  20.             ],
  21.             submoduleCfg: [],
  22.             userRemoteConfigs: scm.userRemoteConfigs
  23.         ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement