Shallow clone example for declarative pipeline?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Shallow clone example for declarative pipeline?

Idan Adar
Could someone please provide an example for shallow clone in a declarative pipeline?

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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b2ab1afe-1ea9-46f1-81c9-4509a4d56c8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Shallow clone example for declarative pipeline?

Idan Adar
I mean, for the checkout scm part above... not a separate "git clone --depth 1 ..."

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/616a459f-55d4-4511-b061-b0188fbe6b54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.