Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The workflow editor is where you define actions for and control the flow of a build. The workflow editor is where you define a Configuration's Stages and also the actions to be performed in each Stage. The following image shows a newly created Configuration's workflow editor.what your build will do when it is executed. It allows you to break up your build into logical blocks, called Stages. Within these stages you can define the individual actions that are the steps your build will execute when running a build. The image below demonstrates a dummy build within the workflow editor.

Image Added 

UI Elements

Stages and Stage Gates

Image Removed

Image Added

Above is an example of the stage and stage gate editor which can be found at the top of the workflow editor. Each stage within your workflow Each Stage is shown as a gray chevron with the stage name in the middle of it. Single clicking on a Stage will display it's action in the Action Workflow below it. Double-Clicking on a Stage will display the "Edit Stage Option" dialog, stage options are explained below. You can also re-order stages by drag and dropping the stage before or after the other stages. The Stage Gate is displayed as a green chevron. Double-Clicking a Stage Gate will display the "Edit Stage Gate" dialog which is also explained below.

Stage and Action Toolbar

white and blue chevron while each stage gate is represented as block with an triangle removed.

Clicking and selecting a stage will display all the actions within that stage in the 'Action workflow' editor. 

Double clicking the stage will display the 'Edit Stage' dialog. See Stage Options for an in-depth guide of the 'Edit Stage' dialog.

Stages can be reordered by dragging and dropping them into the correct location.

Clicking a stage gate will open the 'Edit Stage Gate' dialog. See the 'Edit Stage Gate' section at the bottom of this page for more information about stage gates.

 

Stage and Action Toolbar

Image AddedImage Removed

The Stage and Action tool bar provides

...

functionality to modify stages and actions. The table below provides a short description of each option.

FunctionalityResult
Save All StagesAll changes made in the workflow editor will be saved.
Add StageCreates a new Stage
. Pops up a dialog prompting the user to enter a stage name.
at the end of the Stage Editor
Delete Stage
Delete
Deletes the currently selected stage.
Edit Stage Options

Pops up a dialog and displays the currently selected stage's options.

You can also see this screen by double-clicking the Stage.

Edit Stage Gate

Pops up a dialog and displays the currently selected stage's stage gate.

You can also see this screen by double-clicking the Stage's Stage Gate.

Create Variable

Pops up a Create Variable dialog like the ones seen on the Variables wizard pages.

Variables created through this dialog are Configuration Variables.

Move Up

Moves the currently selected action up the workflow.

Actions can also be moved up with the 'Ctrl + UP' keys

Move Down

Moves the currently selected action down the workflow.

Actions can also be moved down with the 'Ctrl + DOWN' keys

Move Left

Makes the currently selected action a child of the previous action.

Actions can also be moved up with the 'Ctrl + LEFT' keys

Move Right

Makes the currently selected action a sibling of the previous action.

Actions can also be moved up with the 'Ctrl + RIGHT' keys

Edit Action

Pops up a dialog containing the currently selected action's options.

You can also see this screen by double-clicking an action.

Delete Action

Prompts the user to delete the currently selected action.

You can also

deleted actions by selecting one then pressing the [Delete] button

delete an action with the delete key.

 

Actions Workflow

...

Image Added

The

...

'Actions Workflow' Editor contains a list of all the actions

...

that have been added to the stage that is currently selected in the Stage Editor. Actions are listed sequentially with actions at the top of the list being executed BEFORE actions near the bottom.

The 'Edit Action' dialog can be brought up for a specific action by double clicking on that action.

Actions can be moved around

...

the 'Actions Workflow' Editor with either the arrow buttons

...

in the

...

Action List

Image Removed

...

Stage and Actions Toolbar or with the keyboard. The keyboard shortcuts for moving actions are 'CTRL + <KEY_DIRECTION>'.

Moving an action to the left or right controls the indentation of that action. Any action that is indented becomes a child of any action above it that is not indented. This allows you to control the flow of your build by using Flow Control Actions. In the example above, the FinalBuilder and Run DOS Command actions are children of the If action. This means that these actions will only execute when the If action evaluates to true. 

 

Action List

Image Added

The Action list contains all the Actions that are available in Continua CI. These actions have been grouped into categories which, when clicked, will display all actions in that category. In the example above, the 'Build Runners' category is selected and all the 'Build Runner' actions are displayed at the bottom of the list.

Clicking a category will select a different category which will change which actions are shown.

Clicking an action will display the 'Create Action' dialog where all the action's properties can be configured. Once the action has been configured it will then be added to the end of the Action Workflow. Alternatively, you can drag and drop an action from the action list to the exact position in the action workflow

...

.

 

Using the editor

Editing Stage Options

See: Stage Options

 

Editing Stage Gates

...

Image Added

 

Stage Gates are attached to

...

a stage and are simply a list of conditions that must be met before the next stage is executed. For example, you can

...

create a condition where it will only evaluate to true once the server's local time reaches midnight. Stage Gates also come with default conditions which specify that all unit tests that ran in the previous stage must have passed. You can however choose to remove these default conditions.