it is possible to skipDefaultCheckout and then "checkout scm". this isn't typically necessary or desirable if you want to operate on the same repo where your Jenkinsfile lives, but it sounds like you might want to override some checkout options, which seems cool. we also do this for some jobs that "trash the workspace" by writing some files as root, so the default checkout can't work on subsequent builds. in a Jenkinsfile stage we first "fix the workspace" by chown'ing it to the jenkins user, which allows `scm checkout` to work.
On Saturday, June 17, 2017 at 1:22:48 PM UTC-4, Mark Waite wrote: > > Defaults are taken when values are not provided. > > On Sat, Jun 17, 2017 at 11:19 AM Idan Adar <id...@adar.me <javascript:>> > wrote: > >> Another question, if I do customize "checkout", do I need to include >> everything like in your example, or only what I want specifically, like >> depth, and if nothing else is mentioned that the defaults are taken...? >> >> -- >> 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-use...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/ed87e710-1906-46b3-9486-6440b92da5ba%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/ed87e710-1906-46b3-9486-6440b92da5ba%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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/2cd44a76-c556-41a8-93f6-d40e81aca9e7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.