[Anthill-pro] How to set StampValues in the dependencyArray for
concurrent build requests ?
henning.behrens at uniserv.com
henning.behrens at uniserv.com
Thu Jul 24 06:27:32 CDT 2008
Hallo all,
our generic build jobs contain a step that let the job fail, if a BuildLife corresponding to the subversion revsion and platform already exists in the Codestation.
Before throwing an Exception in this step, we want to set the stampValue the parent build request should use in case the dependency buildrequest fails.
// Set new stamp pattern for dependency build life
NewStampValue = NewStampValue + StampFields[0] + "#" + platform + "*";
parentDepArray[i].setStampValue(NewStampValue);
throw new Exception("Failing because, build life not needed");
If only one builrequest of a workflow runs, all is fine.
In case one runs the same workflow for different platforms at the samt time, some of them are always captured in the state "Determining Quiet Period".
It seems to be, that the setStampValue method try to persist the change in the database immediately, conflicting with the others running and trying to do the same thing. At least the entry for the stampValue of the dependency workflow is immediately visible after running the workflow standalone.
Does anybody know how to set the "dependency stamp pattern" at runtime without conflicting parallel builds of the same workflow ?
We would like to set them like BuildRequest properties (myCurrentBuildRequest.setProperty("Property_1","Value");) which do not affect the default Value of a workflowproperty and are isolated from each other through their build request context.
Do I have to use something related to UnitOfWork ? So, as you can see, I have more questions than answers regarding this issue.
Therefore any help would be greatly appreciated
Henning
_____________________________________________________
Dipl.-Math. Henning Behrens
SDC - Software Development & Consulting
PJT - Project Management Team
Uniserv GmbH
Rastatter Straße 13
75179 Pforzheim
Germany
Phone +49 7231 936-2135
Fax +49 7231 936-2500
Email mailto:henning.behrens at uniserv.com
http://www.uniserv.com
http://www.uniserv.com/demo
_____________________________________________________
Uniserv GmbH
Sitz der Gesellschaft: Pforzheim
Geschäftsführer: Roland Pfeiffer
Registergericht: Mannheim HRB 501535
More information about the Anthill-pro
mailing list