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

Automatically select/build the latest svn tag (via "List Subversion tags" build params?)

    XMLWordPrintable

Details

    Description

      My use case is that I want jenkins to automatically build new tags when they are created, so jenkins should somehow automcatically choose the latest tag.

      The "List Subversion tags" already allows to limit the tags to only 1, and with "Sort newest first" it actually shows the latest tag, but this cannot be chosen automatically.

      To select the latest tag automatically I can think of an option "Select newest automatically".

      This build param (newest tag) should be used in scm polling and also when a manual build is triggered.

      Attachments

        Issue Links

          Activity

            pmoranga, Are you working on this?

            recena Manuel Recena Soto added a comment - pmoranga , Are you working on this?

            Code changed in jenkins
            User: Manuel Recena
            Path:
            src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterDefinition.java
            http://jenkins-ci.org/commit/subversion-plugin/5012326e8dc523e5e7706839b7853a86b1f3dce5
            Log:
            JENKINS-14155 Automatically select the first option of tags listing if default value is not defined

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Manuel Recena Path: src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterDefinition.java http://jenkins-ci.org/commit/subversion-plugin/5012326e8dc523e5e7706839b7853a86b1f3dce5 Log: JENKINS-14155 Automatically select the first option of tags listing if default value is not defined

            Code changed in jenkins
            User: Manuel Recena
            Path:
            src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterDefinition.java
            http://jenkins-ci.org/commit/subversion-plugin/d66d0565484bd96e561d8d6dd4f515b9b7132f46
            Log:
            Merge pull request #148 from recena/JENKINS-14155

            JENKINS-14155 Automatically select the first option of tags listing if default value is not defined

            Compare: https://github.com/jenkinsci/subversion-plugin/compare/7e586e7a7867...d66d0565484b

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Manuel Recena Path: src/main/java/hudson/scm/listtagsparameter/ListSubversionTagsParameterDefinition.java http://jenkins-ci.org/commit/subversion-plugin/d66d0565484bd96e561d8d6dd4f515b9b7132f46 Log: Merge pull request #148 from recena/ JENKINS-14155 JENKINS-14155 Automatically select the first option of tags listing if default value is not defined Compare: https://github.com/jenkinsci/subversion-plugin/compare/7e586e7a7867...d66d0565484b
            prassawant pras sawant added a comment -

            Is this fixed , I am using Jenkins ver. 1.652 and subversion plugin 2.5.7
            I also have same issue using "List Subversion tag" where latest or newly created tag is picked by manual builds. However, automated build through SCM Polling fails to pickup or recognize latest tag. I setup "List Subversion tag" similar to the following:
            Name = SVN_TAG
            Repository URL = <my_url>/tags
            Maximum tags to display = 1
            Sort newest first = true

            Subversion's Repository URL - <my_url>/tags/$SVN_TAG

            Thanks!
            Prashant
            prashant.sawant@mastek.com

            prassawant pras sawant added a comment - Is this fixed , I am using Jenkins ver. 1.652 and subversion plugin 2.5.7 I also have same issue using "List Subversion tag" where latest or newly created tag is picked by manual builds. However, automated build through SCM Polling fails to pickup or recognize latest tag. I setup "List Subversion tag" similar to the following: Name = SVN_TAG Repository URL = <my_url>/tags Maximum tags to display = 1 Sort newest first = true Subversion's Repository URL - <my_url>/tags/$SVN_TAG Thanks! Prashant prashant.sawant@mastek.com
            derchristoph Christoph Bro added a comment -

            Is this fixed? is there a Status?

            derchristoph Christoph Bro added a comment - Is this fixed? is there a Status?

            People

              recena Manuel Recena Soto
              martin_grotzke Martin Grotzke
              Votes:
              10 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: