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 
<https://www.jenkins.io/doc/pipeline/steps/workflow-scm-step/> rather than 
the 'git' step <https://www.jenkins.io/doc/pipeline/steps/git/>.  The Pipeline 
snippet generator <http://jenkins.io/redirect/pipeline-snippet-generator> 
will help you generate the correct syntax for your desired checkout.  There 
is a brief video <https://youtu.be/ai1kf4ihZUo> included in the git plugin 
documentation <https://plugins.jenkins.io/git/#pipelines> that shows how to 
use the Pipeline snippet generator.  The git step documentation 
<https://www.jenkins.io/doc/pipeline/steps/git/> 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 Waite
On 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
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/c045a834-8d68-46fe-8b72-860e89416209n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/54da0d5e-e11e-4564-a7b4-c2a49f94efaan%40googlegroups.com.

Reply via email to