if you configure the build-flow itself to be triggered by SCM you may pass GIT_COMMIT to triggered jobs, never tried this.
I expected you could also retrieve this commit revision from SCMRevisionState action, but git-plugin don't use this API (sic) 2013/2/4 Johannes Schirrmeister <[email protected]> > Hi everyone, > > The Build Flow Plugin seems like a great way to orchestrate our build > pipelines. I would like to ask if there is any best practice on how to > ensure that all jobs in one pipeline checkout the same revisions of a Git > repository. > > I believe the Git plugin initially sets the GIT_COMMIT environment > variable and this value would have to be injected into the environments for > all builds before they are run. > > I'd greatly appreciate your feedback, thank you! > Johannes > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
