On Thu, Jun 13, 2019 at 8:53 AM Julien HENRY
<[email protected]> wrote:
> the GIT_COMMIT variable […] was not defined out of the box in my tests. I had 
> to get it from the return of the checkout step

Yes, each `checkout` step in the build, of which there could be zero
or more, can return its own metadata.

For a branch project (such as a build of a GH PR),
`BranchNameContributor` sets build-wide environment variables
corresponding to the revision associated with the build overall. This
is what you would get if you `checkout scm`.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2d5Uawmzr-ybfbFjL8jNorY03NZ2Gjc2uoi0YyFxT-Ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to