Now thinking about it, another solution is to just use the plain git CLI.
(Requires git on the path, note)

*def theSha = "...."*
*sh "git checkout $theSha"*

*// here you go*


2016-03-18 9:12 GMT+00:00 'Björn Pedersen' via Jenkins Users <
[email protected]>:

> Hi,
>
> you could install gerrit-trigger-plugin (you do not need to use gerrit for
> your use-case) and use the gerrit-trigger checkout strategy that can
> use  hashes/tags/etc...
>
> Björn
>
> Am Mittwoch, 25. März 2015 15:26:37 UTC+1 schrieb Lóránt Pintér:
>>
>> Hi,
>>
>> Is it possible to check out a particular commit hash, instead of a branch
>> with the git workflow step?
>>
>> Thanks,
>> Lorant
>>
> --
> 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/2f47b34b-3d3d-4a4f-b6f6-df4d92b4a5a6%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/2f47b34b-3d3d-4a4f-b6f6-df4d92b4a5a6%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/CANWgJS4HMFa9anD6WHygSURsRZZNWU_RfwC3cj24chvOQJYYuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to