Yes, but there is a problem. In the build information I think it will
display the sha1 of the branch checked out automatically rather than that
of the specific commit that I checkout by hand (at least this is what I
though I have seen while I was testing a similar approach ;) ).
But thanks!


On Fri, Mar 18, 2016 at 10:49 AM, Baptiste Mathus <[email protected]> wrote:

> 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 a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/M3tDkHYFfWo/unsubscribe.
> To unsubscribe from this group and all its topics, 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
> <https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4HMFa9anD6WHygSURsRZZNWU_RfwC3cj24chvOQJYYuA%40mail.gmail.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/CAN37iocEkK6DYEbqsrs_W7821GrXaQ8sk3kP6X1JXmSjnixmVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to