You may need to use the "skipDefaultCheckout" option, then use an explicit "checkout" inside a "dir" or other directive that will control the checkout directive.
See skipDefaultCheckout in https://jenkins.io/doc/book/pipeline/syntax/ Mark Waite On Sun, Nov 5, 2017 at 3:56 PM Andy Coates <[email protected]> wrote: > Hi, > > Multibranch Declarative Pipeline seems to have an inbuilt step "Checkout > SCM" that is run before my defined stages that clones the project repo into > $WORKSPACE > > How do I change that directory it clones into? e.g. $WORKSPACE/repo_name > > Thanks! > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/b6823af7-9f33-4699-bf93-ecc832995508%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/b6823af7-9f33-4699-bf93-ecc832995508%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGphXH%2BeiEs6UgkL4y%3Ddou0HiykAcT_VptMVxquwEbV7Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
