Another error - this time in rebase of downstream:
If Upstream job has dynamically defined SVN_URL (in "normal" SubversionSCM):
svn://localhost/D:/myNewSvnTestRepo/trunk@${SVN_REVISION}
then "Rebase with upstream Subversion revision" fails - not reloving variable:
Updating workspace to the latest revision
At revision 215
Merging change from the upstream svn://localhost/D:/myNewSvnTestRepo/trunk@ at rev.210
FATAL: Failed to merge
hudson.util.IOException2: Failed to merge
at jenkins.plugins.svnmerge.FeatureBranchProperty$1.invoke(FeatureBranchProperty.java:236)
at jenkins.plugins.svnmerge.FeatureBranchProperty$1.invoke(FeatureBranchProperty.java:172)
at hudson.FilePath.act(FilePath.java:920)
at hudson.FilePath.act(FilePath.java:893)
at jenkins.plugins.svnmerge.FeatureBranchProperty.rebase(FeatureBranchProperty.java:172)
at jenkins.plugins.svnmerge.RebaseAction.perform(RebaseAction.java:115)
at jenkins.plugins.svnmerge.RebaseBuilder.perform(RebaseBuilder.java:50)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:745)
at hudson.model.Build$BuildExecution.build(Build.java:198)
at hudson.model.Build$BuildExecution.doRun(Build.java:159)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518)
at hudson.model.Run.execute(Run.java:1704)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
Caused by: org.tmatesoft.svn.core.SVNException: svn: E160013: File not found: revision 210, path '/trunk@'
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.internal.io.svn.SVNReader.handleFailureStatus(SVNReader.java:269)
at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:248)
at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:272)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.read(SVNRepositoryImpl.java:1290)
at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getLocationSegmentsImpl(SVNRepositoryImpl.java:340)
at org.tmatesoft.svn.core.io.SVNRepository.getLocationSegments(SVNRepository.java:1128)
at org.tmatesoft.svn.core.io.SVNRepository.getLocationSegments(SVNRepository.java:1158)
at org.tmatesoft.svn.core.internal.wc.SVNMergeDriver.normalizeMergeSources(SVNMergeDriver.java:2005)
at org.tmatesoft.svn.core.internal.wc.SVNMergeDriver.runPeggedMerge(SVNMergeDriver.java:565)
at org.tmatesoft.svn.core.internal.wc16.SVNDiffClient16.doMerge(SVNDiffClient16.java:2244)
at org.tmatesoft.svn.core.internal.wc2.old.SvnOldMerge.run(SvnOldMerge.java:43)
at org.tmatesoft.svn.core.internal.wc2.old.SvnOldMerge.run(SvnOldMerge.java:14)
at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:20)
at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1238)
at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
at org.tmatesoft.svn.core.wc.SVNDiffClient.doMerge(SVNDiffClient.java:2391)
at jenkins.plugins.svnmerge.FeatureBranchProperty$1.invoke(FeatureBranchProperty.java:205)
... 15 more
Caused by: svn: E160013: File not found: revision 210, path '/trunk@'
at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:154)
at org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:97)
at org.tmatesoft.svn.core.internal.io.svn.SVNReader.getErrorMessage(SVNReader.java:283)
at org.tmatesoft.svn.core.internal.io.svn.SVNReader.handleFailureStatus(SVNReader.java:261)
... 31 more
I think that $SVN_URL should be updated (vars replaced with real data) in build metadata ether on resolve?
Without this - "Rebase with upstream Subversion revision" @JENKINS-6851 (and i presume other upstream-based-operations) are fairly limited..
Upon adding post Build "Trigger parameterized build on other projects" with param Subversion revision:
So, maybe using SubversionReleaseSCM as drop-in replacement of SubversionSCM is not-so- easy..