Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Adaptor: what if matches more than one?

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>

0 votes



One answer

Permanent link
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

1 vote

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,020
× 5

Question asked: Jun 22 '12, 11:12 a.m.

Question was seen: 4,578 times

Last updated: Jun 22 '12, 11:27 a.m.

Confirmation Cancel Confirm