OpenMake Meister

Configure Global Environment Variable Section

 

You can configure a Workflow to use particular environment variable settings by using the Configure Environment Section under the Configure Tab. Environments variables defined at this level will apply to the entire Workflow, what is called a “Global” Variable.

 

To add a variable, click on the New Variable button. Next, enter the variable name into the Variable input line and then enter the desired value into the Value input line. You can also choose one of the pre-defined values by clicking on the Macros button and then selecting one of the variables from the pop-up menu. Refer to the “Macros” table below for a list of the available Macros. After clicking OK, the configure environment field will display the new variable as Set. If you delete the value of this variable using the Edit button, the variable will display as Unset.

 

Table Macros.  Environment Macros and Descriptions

Activity Macros

Description

$(LOG_URL)

URL where log output for the Workflow is located.

$(MACHINE_NAME)

Name of the machine executing this activity.

$(USER_NAME)

Name of the user executing the Workflow.

$(BUILD_DIRECTORY)

Build directory from which activities will be executed.

$(BUILD_DATE)

Date the Workflow was executed.

$(BUILD_TIME)

Time the Workflow was executed.

$(JOB_NAME)

The Job Name that appears in the General Information field on the Configure Tab screen.

$(JOB_LABEL)

The Job Label that appears in the General Information field on the Configure Tab screen.

$(JOB_NUMBER)

The Job Number that appears in the General Information field on the Configure Tab screen.

 

 

Table WM-5 shows you how to define Global Variables for a Workflow. The example used is setting up an environment variable called ANT_HOME. The newly configured environment variable will apply to all activities that you execute as part of your sample Workflow.

 

Table WM-5 Setting Up an Environment Variable

Steps

Actions

1

Select the Configure tab

2

Click the New Variable button under the Configure Environment screen.

3

In the pop-up window, name the variable ANT_HOME.

4

Set the value to the directory where you performed the install of Ant

5

Click OK.