-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Windows Server 2008 R2
Jenkins 1.634 or 1.625.1
Subversion Plug-in 2.5.3
In my repository URLs I use variables for specifying branches like
http://subversion/svn/repos/${branch}/plugins/at.myplugin
The variable is defined as environment variable in Manage Jenkins -> Configure System -> Global properties -> Environment variables
This fails with Subversion Plugin > 2.4.5
The last configuration that worked for me is Jenkins 1.580.3 and Subversion 2.4.5
Checking out and building works fine.
The error message in the polling log is:
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
When I define the whole URL in the variable it seems to trigger every time it checks - although there are no changes.
The message in the polling log is:
Started on 20.10.2015 18:25:00 ERROR: Failed to check repository revision for ${testtest} org.tmatesoft.svn.core.SVNException: svn: E125002: Malformed URL '${testtest}' 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:227) at org.tmatesoft.svn.core.SVNURL.parseURIEncoded(SVNURL.java:121) at hudson.scm.SubversionSCM$ModuleLocation.getSVNURL(SubversionSCM.java:2760) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1366) at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:381) at hudson.scm.SCM.poll(SCM.java:398) at hudson.model.AbstractProject._poll(AbstractProject.java:1454) at hudson.model.AbstractProject.poll(AbstractProject.java:1357) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:526) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:555) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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:744) Done. Took 1 ms Changes found
The system log shows:
Okt 20, 2015 6:36:00 PM WARNING hudson.scm.SubversionSCM buildEnvVars no revision found corresponding to ${testtest}; known: [http://subversion/svn/repos_sw_tools/samples] Okt 20, 2015 6:36:00 PM WARNING hudson.scm.SubversionSCM buildEnvVars no revision found corresponding to ${testtest}; known: [http://subversion/svn/repos_sw_tools/samples] Okt 20, 2015 6:36:00 PM INFO hudson.triggers.SCMTrigger$Runner run SCM changes detected in testtest. Triggering #19 Okt 20, 2015 6:36:09 PM INFO hudson.model.Run execute testtest #19 main build action completed: SUCCESS Okt 20, 2015 6:37:00 PM WARNING hudson.scm.SubversionSCM buildEnvVars no revision found corresponding to ${testtest}; known: [http://subversion/svn/repos_sw_tools/samples] Okt 20, 2015 6:37:00 PM WARNING hudson.scm.SubversionSCM buildEnvVars no revision found corresponding to ${testtest}; known: [http://subversion/svn/repos_sw_tools/samples] Okt 20, 2015 6:37:00 PM INFO hudson.triggers.SCMTrigger$Runner run SCM changes detected in testtest. Triggering #20 Okt 20, 2015 6:37:09 PM INFO hudson.model.Run execute testtest #20 main build action completed: SUCCESS
chris_mh3, I've reproduce the bug:
Subversion Polling Log
The bug is related to Jenkins version. I reproduced using 1.625.1.