BuildForge Help

execute

The <execute> element is used inside the <command> element to specify commands. The contents of the element are one or more lines of text to be sent to the server used by the adaptor. Dot commands cannot be used in the <execute> element. When a <run> element calls a <command> element, the system replaces any positional parameters in the <execute> element's content with the parameters specified in the calling <run> element. A $1 parameter in the <execute> element's content is replaced by the first parameter, a $2 parameter is replaced with the second parameter, and so on.

Use the conditional attribute to control the execution of the commands in the <execute> element. The value of the conditional attribute is an expression that evaluates to true or false. If the expression evaluates to true, the system executes the commands; if the express evaluates to false, the commands are not executed.

<execute>
p4 changes -s submitted -t -i $2@$1,@now
</execute>