Skip to content

Argument Builder

The argument builder is used to create a complex set of arguments. All of the arguments constructed by the arg builder are added to the end of the remote exec task's "Command" field.

tasks/argbuilder.png

The arg builder contains a list of pieces that are executed in order. Each piece has a Javascript expression (the "If" field on the left) and a string to append ("Then Add") if the expression is true. If the "Add "Otherwise" value" is checked, then a string to append when the expression is not true may also be supplied.

While the expression is pure Javascript, the "Then add" and "Otherwise add" are strings. Expression escape may be used in these fields.

In the example, if the expression "java8 && !localVm" is true, "-use_java_8 -Dj8=true" is added to the command. If that expression is not true, "-localvm" is added.

Workload Automation and Orchestration