Looks like after checkout and only if successful https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/AbstractBuild.java#L612
Not sure if pipeline or other non AbstractBuild type jobs does something different. /B On Wed, Apr 6, 2016 at 8:08 PM, Mads Nielsen <m...@praqma.net> wrote: > Hey Guyes... > > Question: > > The SCMListener class has a method, called onCheckout(...) that is called > when a build finishes establishing a workspace and immediately after > SMC.checkout(). Does this mean this method is called even if the SCM fails > to check something out, documentation isn't really clear about it? > > > http://javadoc.jenkins-ci.org/hudson/model/listeners/SCMListener.html#onCheckout(hudson.model.Run, > hudson.scm.SCM, hudson.FilePath, hudson.model.TaskListener, java.io.File, > hudson.scm.SCMRevisionState) > > Best regards, > Mads > > [image: ____________________________________________________________] > Mads Nielsen > Consultant > m...@praqma.net > +45 50 98 18 09 <+45%2050%2098%2018%2009> > Skype: inkspot > Praqma > www.praqma.com > DK: CPH, Aarhus, Allerod > NO: OSL > SE: STHLM > +45 36 PRAQMA <+4536772762> > > <http://www.josra.org/blog/An-automated-git-branching-strategy.html?src=mailbanner> > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-dev+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/CAFariutjrrj%3DyRguJK6pWHiZmaX7FioZsbBGFh3XMJOC8sN2Tg%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-dev/CAFariutjrrj%3DyRguJK6pWHiZmaX7FioZsbBGFh3XMJOC8sN2Tg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Robert Sandell *Software Engineer* *CloudBees Inc.* -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS3ygdLQYC6TUm%3D6DCcjRNWiRDzSZeERd7_5JWvGb-_m6Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.