How to get GIT revision. All kind of post on variables does not match any case.

21 views
Skip to first unread message

Eldad Cohen

unread,
Jan 14, 2019, 2:40:02 PM1/14/19
to Jenkins Users
How to get GIT revision in a pipeline. All kind of post on variables does not match any case.

Mark Waite

unread,
Jan 14, 2019, 2:51:31 PM1/14/19
to Jenkins Users
If GIT_COMMIT is not providing what you want, then you can use an `sh` or `bat` step to get the sha1 of the commit that is the HEAD of the working repository.


Mark Waite



On Mon, Jan 14, 2019 at 12:40 PM Eldad Cohen <eldadc...@gmail.com> wrote:
How to get GIT revision in a pipeline. All kind of post on variables does not match any case.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/262a2b3d-efac-4980-9607-5ae37712eb34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite

Eldad Cohen

unread,
Jan 14, 2019, 3:29:34 PM1/14/19
to Jenkins Users
Thanks on your help !!
Reply all
Reply to author
Forward
0 new messages