Reputation: 173
Is there any way to make jenkins checkout and build a certain tag (parameterized builds
?)
I'm currently building the development (master branch) and right after tag a version (using maven:release
)
some information (as suggested by Vonc)
Env is win7, latest git, latest jenkins (updated yesterday) .
I've tried placing the tag name in the Branch Specifier
but without luck (either it fails or checking out the master
branch).
from jenkins log:
Fetching changes from 1 remote Git repository Fetching upstream changes from [email protected]:${myorgname}/${myorgname}.git
I'm guessing the question is really - where (if any) do I tell jenkins - "hi, don't checkout master branch, just checkout the tag".
Is there a place I can configure the git command myself? (e.g - git fetch my_tag
)
Upvotes: 4
Views: 2378
Reputation: 11075
If you want to make Jenkins build from a git tag, you enter the tag name into the box labeled "Branches to build". You can put a branch name, a tag or even a git revision into the box.
If it is not working for you, are you sure you have pushed the tag to the repository where Jenkins is pulling from? git push
does not push tags unless you tell it to.
Upvotes: 2