Actions

Although different actions will perform entirely different tasks, all Actions have several things in common.

Default Directory

To simplify the process of working with files and directories, many actions utilize the "default directory." This can be thought of as the working directory for both input and output files.

When an action utilizes both an input and output of files (compiling, for example) and "default" is used for both of those actions, the input set of files is replaced by the output set of files once the action is no longer executing.

For example:

Default Directory

Stage

<< empty >>

Before Execution

\helloworld.cpp
\helloworld.h

After GetLatest (output only) runs

\helloworld.exe

After Compile (input+output) runs

\helloworld.exe
readme.txt

After Create File (output only) runs

\helloworld.zip

After Create Zip File (input+output) runs

Note that each deployable will have its own default directory. That is, files added to the default directory for an action running for the Web Deployable will not be accessible by an action running for the Middle Tier Deployable.

 

Overriding the Default

From time to time, the default directory will need to be overridden. One of the most common scenarios for this is transferring files from the Default Directory to the action destination directory (such as d:\websites\example.com). But there are other instances in which overriding makes sense, such as:

 

Override Rules

When a path is specified for either the source or target directory, the following rules apply:

This content has the following tags:

buildmasterdeployment-plansactions