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 made changes -
          Link New: This issue is related to JENKINS-10925 [ JENKINS-10925 ]
          sogabe made changes -
          Assignee New: sogabe [ sogabe ]
          sogabe made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Romain Seguy made changes -
          Link New: This issue is duplicated by JENKINS-10925 [ JENKINS-10925 ]
          Romain Seguy made changes -
          Link Original: This issue is related to JENKINS-10925 [ JENKINS-10925 ]
          kutzi made changes -
          Link New: This issue is duplicated by JENKINS-10485 [ JENKINS-10485 ]
          kutzi made changes -
          Link New: This issue is related to JENKINS-11592 [ JENKINS-11592 ]
          leojhartiv made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Bela Eröss made changes -
          Attachment New: JENKINS-10628.patch [ 21762 ]

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

              Created:
              Updated:
              Resolved: