Howto use method setWorkspaceFlows in IScmService
![]()
I am implementing a service and have to set the deliver flow target of the workspace that is going to be built to a specific target stream to be able to get a reference to this stream again after a successful build using the build result to get the build definition, the build definition to get the workspace that has been built and the workspace to get its deliver flow target to finally compare the workspace to the target stream and release the outgoing change sets from the workspace into the target stream.
I am trying to use the method
but I do not really understand what parameters I have to use to make it work. Especially the parameter 'CurrentFlows currentFlows' causes either an ImmutablePropertyException when I try to set the CurrentDeliverFlow of the workspace directly using '((Workspace)workspace).setCurrentDeliverFlow(targetStream), an IllegalArgumentAcception when I am trying to use the working copy of the workspace or an IllegalArgumentAcception with reason 'Specified current deliver flow is not in the list of deliver flows' when I do not try to set the current deliver flow at all in the currentFlows-parameter.
|
One answer
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.