BusyB: The WhenCmdOK Trigger |
|
|
The <whenCmdOK> trigger allows you to execute your build based on the return code from a command. For example, the following busyb.xml file file will check for the existence of the file “/tmp/foo” every 5 minutes and run a build if the file does indeed exist (for the Unix impaired, the “test -f” command returns a good status when the file named actually exists.): <project>
<whenCmdOK>
<interval>5 minutes</interval>
<cmd>test -f /tmp/foo</cmd>
</whenCmdOK>
<build>
... build sub elements...
</build>
</project>The <whenCmdOK> trigger will fire a build only if the command returns a zero status code. |