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

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

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • subversion-plugin
    • None

      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.

          [JENKINS-14155] Automatically select/build the latest svn tag (via "List Subversion tags" build params?)

          Hi er gt, Looks like it's no one was able to help me. Christoph Kutzinski Made some observations on my pull request (https://github.com/jenkinsci/subversion-plugin/pull/40) but no movement so far.

          Kind regards,

          Pedro Goncalves added a comment - Hi er gt, Looks like it's no one was able to help me. Christoph Kutzinski Made some observations on my pull request ( https://github.com/jenkinsci/subversion-plugin/pull/40 ) but no movement so far. Kind regards,

          Oleg Nenashev added a comment -

          Please don't forget to update assignments.
          Just for tracking and preventing double efforts on hot issues...

          Oleg Nenashev added a comment - Please don't forget to update assignments. Just for tracking and preventing double efforts on hot issues...

          Please take a note on my comments in JENKINS-19560

          In was thinking of a more general approach on selecting the DEFAULT value
          which would help us a lot if it was implemented that way!

          Thank you very much!

          Tom Ghyselinck added a comment - Please take a note on my comments in JENKINS-19560 In was thinking of a more general approach on selecting the DEFAULT value which would help us a lot if it was implemented that way! Thank you very much!

          er gt added a comment -

          Just curious: Is there coming a new version of the subversion plugin or not?

          er gt added a comment - Just curious: Is there coming a new version of the subversion plugin or not?

          Huy Phu added a comment - - edited

          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 (https://my_domain/svn/my_groupID/my_artifactID/tags)
          Maximum tags to display = 1
          Sort newest first = true

          Is there fix for this by any chance?

          Thanks!

          Huy Phu added a comment - - edited 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 ( https://my_domain/svn/my_groupID/my_artifactID/tags ) Maximum tags to display = 1 Sort newest first = true Is there fix for this by any chance? Thanks!

          pmoranga, Are you working on this?

          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/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/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

          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

          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

          Christoph Bro added a comment -

          Is this fixed? is there a Status?

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

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

              Created:
              Updated:
              Resolved: