-
New Feature
-
Resolution: Unresolved
-
Minor
We use Jenkins to deploy project by building from the latest tag. To do so without a need to manually specify latest tag we use
Refspec: +refs/tags/prod/:refs/remotes/origin/tags/prod/
Branch specifier: /tags/prod/
This works fine except for first time after git configuration fro project was changed, as it will try to build all unseen branches (in this case tags). It would be useful to have an option to build only latest tag or branch that matches ref spec and specifier. Or to be able to set branch specifier to executable script, for example
git describe --tags `git rev-list --tags --max-count=1`
Have you considered using the "Ancestry build chooser" under the "Strategy for choosing what to build"? It will let you choose to only build things within a time period, or only things which include a specific SHA1 in their history.