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

SCM build trigger not working correctly with variables in SVN URL

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • subversion-plugin
    • None

      I tried using variables in my SVN URL with Subversion plug-in 1.29, but now the SCM build trigger triggers a new build on every update check.

      I created two global variables in the Jenkins System Configuration:

      MYSVN_BASE=file:///home/svn/myproject
      MYSVN_BRANCH=trunk

      and in my build job I use

      $MYSVN_BASE/$MYSVN_BRANCH

      as the SVN URL and the SCM build trigger set to check every 15 minutes for updates.

      Despite a nasty "Invalid URL syntax" error marker below the URL field, checking out and building the project works fine. However, the log says:

      Started by an SCM change
      Updating file:///home/svn/myproject/trunk
      At revision 13360
      no revision recorded for $MYSVN_BASE/$MYSVN_BRANCH in the previous build

      And on any subsequent SCM check, the build is triggered with that same message...

          [JENKINS-10628] SCM build trigger not working correctly with variables in SVN URL

          Carsten Reckord created issue -
          Carsten Reckord made changes -
          Affects Version/s New: current [ 10162 ]

          Jos Braaksma added a comment -

          could be the same

          Jos Braaksma added a comment - could be the same
          Jos Braaksma made changes -
          Link New: This issue is related to JENKINS-10925 [ JENKINS-10925 ]

          Rob Johnston added a comment - - edited

          Reproduced in Jenkins 1.427 with SVN Plugin 1.31

          Rob Johnston added a comment - - edited Reproduced in Jenkins 1.427 with SVN Plugin 1.31
          sogabe made changes -
          Assignee New: sogabe [ sogabe ]

          dogfood added a comment -

          Integrated in plugins_subversion #118
          [FIXED JENKINS-10628]SCM build trigger not working correctly with variables in SVN URL.

          sogabe :
          Files :

          • /trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionSCM.java
          • /trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionChangeLogBuilder.java

          dogfood added a comment - Integrated in plugins_subversion #118 [FIXED JENKINS-10628] SCM build trigger not working correctly with variables in SVN URL. sogabe : Files : /trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionSCM.java /trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionChangeLogBuilder.java
          sogabe made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Code changed in jenkins
          User: sogabe
          Path:
          src/main/java/hudson/scm/SubversionChangeLogBuilder.java
          src/main/java/hudson/scm/SubversionSCM.java
          http://jenkins-ci.org/commit/subversion-plugin/a9229e4c041149518d2e310337b7035ae3aba086
          Log:
          [FIXED JENKINS-10628]SCM build trigger not working correctly with variables in SVN URL.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: sogabe Path: src/main/java/hudson/scm/SubversionChangeLogBuilder.java src/main/java/hudson/scm/SubversionSCM.java http://jenkins-ci.org/commit/subversion-plugin/a9229e4c041149518d2e310337b7035ae3aba086 Log: [FIXED JENKINS-10628] SCM build trigger not working correctly with variables in SVN URL.

          Code changed in jenkins
          User: sogabe
          Path:
          src/main/java/hudson/scm/SubversionChangeLogBuilder.java
          src/main/java/hudson/scm/SubversionSCM.java
          http://jenkins-ci.org/commit/subversion-plugin/a9229e4c041149518d2e310337b7035ae3aba086
          Log:
          [FIXED JENKINS-10628]SCM build trigger not working correctly with variables in SVN URL.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: sogabe Path: src/main/java/hudson/scm/SubversionChangeLogBuilder.java src/main/java/hudson/scm/SubversionSCM.java http://jenkins-ci.org/commit/subversion-plugin/a9229e4c041149518d2e310337b7035ae3aba086 Log: [FIXED JENKINS-10628] SCM build trigger not working correctly with variables in SVN URL.

            sogabe sogabe
            creckord Carsten Reckord
            Votes:
            36 Vote for this issue
            Watchers:
            41 Start watching this issue

              Created:
              Updated:
              Resolved: