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 jenkinsci-users+unsubscr...@googlegroups.com.
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 via email to