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

Subversion polling not work when Repository URL value is variable - E125002: Malformed URL '${SVN_REPO_VARIABLE}'

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • subversion-plugin
    • CentOS 6 64bit master

      Jenkins ver. 1.558

      subversion plugin: 2.2
      credentials plugin: 1.10

      When I set Repository URL as variable instead of direct url(please see attachment), polling is not working. Checkout and update are working fine.

      Apr 10, 2014 10:03:17 AM hudson.scm.SubversionSCM$DescriptorImpl doCheckRevisionPropertiesSupported
      INFO: Failed to access subversion repository ${SVN_REPO}
      org.tmatesoft.svn.core.SVNException: svn: E125002: Malformed URL '${SVN_REPO}'
      at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
      at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
      at org.tmatesoft.svn.core.SVNURL.<init>(SVNURL.java:233)
      at org.tmatesoft.svn.core.SVNURL.parseURIDecoded(SVNURL.java:115)
      at hudson.scm.SubversionSCM$DescriptorImpl.doCheckRevisionPropertiesSupported(SubversionSCM.java:2185)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      –
      at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
      at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
      at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
      at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: svn: E125002: Malformed URL '${SVN_REPO}'
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:171)
      at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:126)
      at org.tmatesoft.svn.core.SVNURL.<init>(SVNURL.java:232)
      ... 94 more

          [JENKINS-22568] Subversion polling not work when Repository URL value is variable - E125002: Malformed URL '${SVN_REPO_VARIABLE}'

          Again marking this issue as solved. The initial fix for this was the parameterized build not obtaining the proper environment variables while polling. The envinject plugin version of this issue can be found in JENKINS-22922.

          Steven Christou added a comment - Again marking this issue as solved. The initial fix for this was the parameterized build not obtaining the proper environment variables while polling. The envinject plugin version of this issue can be found in JENKINS-22922 .

          Tim Bradt added a comment -

          Confirmed. Updated to 2.5.2 and confirmed that polling with a variable URL works.

          Tim Bradt added a comment - Confirmed. Updated to 2.5.2 and confirmed that polling with a variable URL works.

          Manuel Recena Soto added a comment - - edited

          tpbradt Thanks so much for your feedback. It is very important to receive feedback when a bug is solved.

          Manuel Recena Soto added a comment - - edited tpbradt Thanks so much for your feedback. It is very important to receive feedback when a bug is solved.

          chris_mh3 added a comment - - edited

          Unfortunatly this still does not work for me.

          From the Subverion Polling Log:

          Started on 20.10.2015 15:14:00
          Location 'http://subversion/svn/repos/${branch}/plugins/at.myplugin' does not exist
          One or more repository locations do not exist anymore for hudson.model.FreeStyleProject@78dd0b8f[MyProject], project will be disabled.
          The project has been disabled
          Done. Took 0,1 sec
          No changes
          

          branch is defined as evironment variable in the jenkins configuration.
          Subversion Plug-in 2.5.3
          Jenkins 1.634 and 1.625.1

          It works with Jenkins 1.580.3 and Subversion 2.4.5

          chris_mh3 added a comment - - edited Unfortunatly this still does not work for me. From the Subverion Polling Log: Started on 20.10.2015 15:14:00 Location 'http: //subversion/svn/repos/${branch}/plugins/at.myplugin' does not exist One or more repository locations do not exist anymore for hudson.model.FreeStyleProject@78dd0b8f[MyProject], project will be disabled. The project has been disabled Done. Took 0,1 sec No changes branch is defined as evironment variable in the jenkins configuration. Subversion Plug-in 2.5.3 Jenkins 1.634 and 1.625.1 It works with Jenkins 1.580.3 and Subversion 2.4.5

          Daniel Beck added a comment -

          chris_mh3 Please provide more details, where/how specifically is the branch variable defined?

          Daniel Beck added a comment - chris_mh3 Please provide more details, where/how specifically is the branch variable defined?

          @chris_mh3,

          I received feedback from several users confirming that this bug is solved. I prefer to close this issue and open new one with new information.

          Regards,

          Manuel Recena Soto added a comment - @chris_mh3, I received feedback from several users confirming that this bug is solved. I prefer to close this issue and open new one with new information. Regards,

          chris_mh3 added a comment - - edited

          the branch variable is defined in Manage Jenkins -> Configure System -> Global properties -> Environment variables

          chris_mh3 added a comment - - edited the branch variable is defined in Manage Jenkins -> Configure System -> Global properties -> Environment variables

          chris_mh3 Could you add a new ticket, please?

          Manuel Recena Soto added a comment - chris_mh3 Could you add a new ticket, please?

          chris_mh3 added a comment -

          chris_mh3 added a comment - JENKINS-31067

          chris_mh3, Thank you.

          Manuel Recena Soto added a comment - chris_mh3 , Thank you.

            recena Manuel Recena Soto
            dilyin Denis Ilyin
            Votes:
            5 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: