I am SO sorry Mark, I confused this Jenkins thread with a totally unrelated 
support ticket.  I'm not using pipeline, just the git plug in in conjuction 
with git parameters.  What exactly do you mean by fetching the tags?Sent from 
my T-Mobile 4G LTE Device
-------- Original message --------From: Mark Waite <mark.earl.wa...@gmail.com> 
Date: 4/13/21  7:29 PM  (GMT-05:00) To: Jenkins Users 
<jenkinsci-users@googlegroups.com> Subject: Re: Git Plugin Checkout From Branch 
With Tag As far as I can tell, you didn't provide the context of the old 
conversation.  The steps you've attempted and the context where you're trying 
those steps are not clear to me.  The comments that follow are my guesses of 
things that might help you.If you're using Jenkins Pipeline and want to 
checkout a tag in your parameterized job, you must use the 'checkout scm' step 
rather than the 'git' step.  The Pipeline snippet generator will help you 
generate the correct syntax for your desired checkout.  There is a brief video 
included in the git plugin documentation that shows how to use the Pipeline 
snippet generator.  The git step documentation warns that 'checkout' is the 
preferred step and that tag checkout is not supported with the git step.If 
you're using a Freestyle job, then you may need to check that you're fetching 
the tags and that the tag parameter you're providing is being placed in the 
"Branch to build" as a variable to be expanded.Mark WaiteOn Tuesday, April 13, 
2021 at 1:21:39 PM UTC-6 eric....@gmail.com wrote:Tried a bunch more stuff 
using Git Parameters:https://plugins.jenkins.io/git-parameter/Again, I can 
checkout from the branch, but not using the tag.  I set a git parameter for 
branch and then put it in the branch specifier and that worked.  I added 
another for tag, then put that in the same branch specifier after a space and 
got an error.  If I put it in an additional branch specifier, it seems to have 
gotten ignored.  Just got the tip revision from that branch.On Tue, Apr 13, 
2021 at 12:57 PM eric....@gmail.com <eric....@gmail.com> wrote:OK, I think I've 
tried everything in this OLD conversation, but none of them work.  I have no 
issues checking out from a branch using branch specifier.  I've tried adding on 
to the specifier:  ${my_branch} tags/${my_tag}.  Have also added another branch 
and used this sort of thing (as well as every other way they said to do it in 
that thread).  Every way seems to just get the tip revision of all the files in 
that branch.  Does anyone have guidance of how to get this done?  Thanks!  Eric



-- 
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/UGyBIx3pX9s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c045a834-8d68-46fe-8b72-860e89416209n%40googlegroups.com.





-- 
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/UGyBIx3pX9s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/54da0d5e-e11e-4564-a7b4-c2a49f94efaan%40googlegroups.com.

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/60762fe0.1c69fb81.51b85.e697%40mx.google.com.

Reply via email to