Shallow clone example for declarative pipeline?

135 views
Skip to first unread message

Idan Adar

unread,
Jun 16, 2017, 11:35:08 AM6/16/17
to Jenkins Users
Could someone please provide an example for shallow clone in a declarative pipeline?

pipeline {
   options
{
      ansiColor
('xterm')
      skipDefaultCheckout
()
      disableConcurrentBuilds
()
   
}
   
   stages
{
         steps
{
             checkout scm
             
...
         
}
   
}
}

Idan Adar

unread,
Jun 16, 2017, 11:37:40 AM6/16/17
to Jenkins Users
I mean, for the checkout scm part above... not a separate "git clone --depth 1 ..."
Reply all
Reply to author
Forward
0 new messages