![]() |
OpenMake Meister |
You can execute Workflows that use Server Pools from the command line. This is useful when an external tool is used to "kick-off" the Workflow, such as from a versioning or task management tool. Executing the Workflow from the command line supports this process.
Once a Workflow has been defined and saved from the Workflow Editor, you can execute it with omcmdline.jar. omcmdline.jar can be found in the bin directory under the root install of the Command Line Client. When executed omcmdline.jar will call any or all Workflows exactly as they are defined in the Workflow Explorer. As a result, the Workflow must be defined to use a Server Pool before it can be executed remotely from the command line.
The syntax for calling Workflows from the command line is as follows:
java -jar <Command_Line_Client_Root>\bin\ omcmdline.jar -build <Build_Job>, <Build_Job>
To call this from an external tool, simply create a script that references this command and add it to your external task. All logs from a command line Workflow are stored on the central Knowledgebase Server and can be viewed using the Workflow Log Explorer.