Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30076

Build only latest of matched tags or branches

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin

      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`
      

            Unassigned Unassigned
            nickab Nick Abalov
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: