It's all about the answers!

Ask a question

Adaptor: what if matches more than one?


Jirong Hu (1.5k9295258) | asked Jun 22 '12, 11:12 a.m.
The following is found from the ClearCaseBaseline adaptor. To check if there is deliver going on, we have to check all development streams. So I assume the "run command" will run multiple times if there are multiple matches?

<!-- Get dev streams in integration stream -->
<command name="cc_get_dev_streams">
<execute>
cleartool startview $VIEW
cleartool lsstream -s -in $1@$2
</execute>
<resultsblock>
<match pattern="^(.*?)_(.*?)$"><!-- Need to tweak this regex pattern for AGE naming conventions on dev streams> -->
<run command="cc_deliver_in_progress" params="$1 $2 $PROJECT_VOB" server="$CCSERVER" dir="/" timeout="360"/>
</match>
</resultsblock>
</command>

One answer



permanent link
Spencer Murata (2.3k115971) | answered Jun 22 '12, 11:27 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Yes.  The match pattern is run against every line of output from the execute command, so if multiple matches occur, then multiple commands will run.

Also the adaptor hasn't been updated in a while.  There is a new attribute you can assign to the command node called type which can allow you to run the commands in parallel, rather than the default serial call.  So the command would look like:
&lt;command name="cc_deliver_in_progress" type="parallel"&gt;

~Spencer

Your answer


Register or to post 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.