Git jenkins and tags all together

Is there a way to do a jenkins check and create a specific tag ( parameterized builds ?) I am currently creating a development (master branch) and right after the version tag (using maven:release )

some information (as suggested by Vonc)
Env - win7, last git, last jenkins (updated yesterday). I tried to put the tag name in the Branch Specifier , but no luck (either it fails or it checks the master branch). from jenkins magazine:

Fetching Changes from 1 Remote Git Repository Fetching Upstream Changes from git @ github.com: $ {myorgname} / $ {myorgname} .git

I guess the question really is - where (if any), I tell Jenkins - "hello, don't check the master branch, just check the tag." Is there a place where I can configure the Git command myself? (e.g. git fetch my_tag )

+4
source share
1 answer

If you want to create Jenkins from a git tag, you will enter the tag name in the field labeled "Branches for assembly". You can put a branch name, tag, or even a git revision in the field.

If it doesnโ€™t work for you, are you sure you clicked the tag in the vault, where does Jenkins pull? git push does not click tags unless you report it.

+2
source

Source: https://habr.com/ru/post/1396214/


All Articles