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

Build only latest of matched tags or branches

    • 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`
      

          [JENKINS-30076] Build only latest of matched tags or branches

          Nick Abalov created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 165159 ] New: JNJira + In-Review [ 181859 ]
          Nicolas De Loof made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ]

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

              Created:
              Updated: