Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Does change sets support different repository ? #994

ChunwenWang ·
Hi
I use Set up Builds for Multiple Branches to test change sets in different repository
http://wiki.pmease.com/display/QB21/Set ... e+Branches

But I change variable branch value to be inputted by user.

suppose I have a svn repostitory
tags/BS/trunk/Build_1.0.0/ (maybe svn revision 500)
tags/BS/trunk/Build_1.0.1/ (maybe svn revision 510)
tags/BS/trunk/Build_2.0.0/ (maybe svn revision 520)
tags/BS/trunk/Build_2.0.1/ (maybe svn revision 530)

I create a configuration named tags.
In repository tab, Url to Checkout : http://192.168.0.3/svn/tags/BS/trunk/Build_${vars.get("branch")}
There is only one step : checkout.

Then I create its sub-configuration named 1.x and 2.x
In basic tab
create a variable named branch value prompt as text input in sub-configuration 1.x
create a variable named branch value prompt as text input in sub-configuration 2.x
These two configurations can inherit parent's steps.
When I run 2.x and input 2.0.0, it works. Then I run 2.x and input 2.0.1, it fails.


log as follows
14:30:21,116 INFO - Checking execute condition of step 'master'...
14:30:21,117 INFO - Execute condition satisfied, selecting node to execute step 'master'...
14:30:21,126 [master@chunwen-desktop:8810] INFO - Executing step 'master' on node 'chunwen-desktop:8810'...
14:30:21,134 [master@chunwen-desktop:8810] INFO - Acquiring workspace mutex...
14:30:21,134 [master@chunwen-desktop:8810] INFO - Workspace mutex acquired.
14:30:21,134 [master@chunwen-desktop:8810] INFO - Running step...
14:30:21,134 [master@chunwen-desktop:8810] INFO - Checking execute condition of step 'checkout'...
14:30:21,135 [master@chunwen-desktop:8810] INFO - Execute condition satisfied, selecting node to execute step 'checkout'...
14:30:21,143 [checkout@chunwen-desktop:8810] INFO - Executing step 'checkout' on node 'chunwen-desktop:8810'...
14:30:21,148 [checkout@chunwen-desktop:8810] INFO - Acquiring workspace mutex...
14:30:21,148 [checkout@chunwen-desktop:8810] INFO - Workspace mutex acquired.
14:30:21,148 [checkout@chunwen-desktop:8810] INFO - Running step...
14:30:21,173 [checkout@chunwen-desktop:8810] INFO - Getting changes since build '2.0.4'...
14:30:21,365 [checkout@chunwen-desktop:8810] INFO - Checking out revision '590' of repository 'BS_trunk_Build'...
14:30:21,366 [checkout@chunwen-desktop:8810] INFO - Checking out (url: http://192.168.0.3/svn/tags/BS/trunk/Build_2.0.1, to: /WROKS/quickbuild-2.1.36-linux-x86-64/workspace/root/tags/2.x, revision: 590)
14:30:21,505 [checkout@chunwen-desktop:8810] INFO - Detected change in URL (from: http://192.168.0.3/svn/tags/BS/trunk/Build_2.0.1), using switch command.
14:30:40,532 [checkout@chunwen-desktop:8810] WARN - svn: Directory '/WROKS/quickbuild-2.1.36-linux-x86-64/workspace/root/tags/2.x/Source/xxxx/.svn' containing working copy admin area is missing
14:30:44,562 [checkout@chunwen-desktop:8810] ERROR - Step 'checkout' is failed.
com.pmease.quickbuild.QuickbuildException: Failed to run command: svn switch http://192.168.0.3/svn/tags/BS/trunk/Build_2.0.1 /WROKS/quickbuild-2.1.36-linux-x86-64/workspace/root/tags/2.x --non-interactive --username xxxx --password ****** -r 590 , returned code: 1
at com.pmease.quickbuild.execution.CommandExecutor.run(CommandExecutor.java:138)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository.checkoutByRevision(SvnRepository.java:399)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository$$EnhancerByCGLIB$$5539a788.CGLIB$checkoutByRevision$15(<generated>)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository$$EnhancerByCGLIB$$5539a788$$FastClassByCGLIB$$e63086c5.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultExpressionManager$Interpolator.intercept(DefaultExpressionManager.java:271)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository$$EnhancerByCGLIB$$5539a788.checkoutByRevision(<generated>)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository.checkoutByRevision(SvnRepository.java:1)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository$$EnhancerByCGLIB$$5539a788.CGLIB$checkoutByRevision$16(<generated>)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository$$EnhancerByCGLIB$$5539a788$$FastClassByCGLIB$$e63086c5.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultExpressionManager$Interpolator.intercept(DefaultExpressionManager.java:271)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository$$EnhancerByCGLIB$$5539a788.checkoutByRevision(<generated>)
at com.pmease.quickbuild.repositorysupport.Repository.checkout(Repository.java:208)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository$$EnhancerByCGLIB$$5539a788.CGLIB$checkout$48(<generated>)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository$$EnhancerByCGLIB$$5539a788$$FastClassByCGLIB$$e63086c5.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultExpressionManager$Interpolator.intercept(DefaultExpressionManager.java:271)
at com.pmease.quickbuild.plugin.scm.svn.SvnRepository$$EnhancerByCGLIB$$5539a788.checkout(<generated>)
at com.pmease.quickbuild.plugin.basis.checkout.CheckoutStep.run(CheckoutStep.java:99)
at com.pmease.quickbuild.plugin.basis.checkout.CheckoutStep$$EnhancerByCGLIB$$96bc95ab.CGLIB$run$0(<generated>)
at com.pmease.quickbuild.plugin.basis.checkout.CheckoutStep$$EnhancerByCGLIB$$96bc95ab$$FastClassByCGLIB$$40003adb.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultExpressionManager$Interpolator.intercept(DefaultExpressionManager.java:271)
at com.pmease.quickbuild.plugin.basis.checkout.CheckoutStep$$EnhancerByCGLIB$$96bc95ab.run(<generated>)
at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:525)
at com.pmease.quickbuild.stepsupport.StepJob.execute(StepJob.java:37)
at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:116)
at java.lang.Thread.run(Thread.java:619)
14:30:44,563 [checkout@chunwen-desktop:8810] INFO - Workspace mutex released.
14:30:44,571 [master@chunwen-desktop:8810] ERROR - Step 'master' is failed.
com.pmease.quickbuild.QuickbuildException: Composite step 'master' failed due to unsatisfication of success condition.
at com.pmease.quickbuild.stepsupport.CompositeStep.run(CompositeStep.java:97)
at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:525)
at com.pmease.quickbuild.stepsupport.StepJob.execute(StepJob.java:37)
at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:116)
at java.lang.Thread.run(Thread.java:619)
14:30:44,571 [master@chunwen-desktop:8810] INFO - Workspace mutex released.
  • replies 3
  • views 1287
  • stars 0
robinshen ADMIN ·
Make sure to clean the workspace before switching to build against another branch. Workspace cleanup can be automated by scripting pre-execute condition of checkout step.
ChunwenWang ·
I tried to clean workspace manually before.
But it still can not show change sets between different repository path.
robinshen ADMIN ·
Changesets will only make sense if repository path remains the same.