Managing Your Pipelines
Creating Pipelines
A pipeline requires at least two jobs. To create jobs, see Creating Jobs.
-
Click
Projects from the primary navigation menu.
Your project library opens, listing the existing projects. -
Click a project in the list.
The project opens on its job library. -
Click
Pipelines from the secondary navigation menu to open the project’s pipeline library.
-
Click New pipeline to create a new pipeline.
A page to create your pipeline opens. -
Enter a name and a description for your pipeline.
-
Construct your pipeline by adding at least two jobs.
-
Select Add job and chose a job from the list.
A card containing basic information, such as name, technology, and job category, appears in the graph. -
Select Add job again and chose another job from the list.
Another job card appears in the graph. -
Link the two jobs.
-
Repeat these steps as many times as required. You can also add one or more conditions to build more relevant pipelines.
To add conditions, click Add condition when editing your pipeline and link it to your jobs.
A condition must have at least one parent and one child.
-
-
Configure the settings. You can add a scheduled run, email alerts, environment variables, and a release note.
-
Click either:
-
Save pipeline to save your changes.
-
The kebab menu
to save your changes and automatically run your pipeline. -
The cross
to exit the creation mode without saving your pipeline. A pop-in window appears with a progress bar: you can click the cross to exit faster or click Continue edition to cancel your cancellation.
-
To delete a pipeline, you can either:
A confirmation message appears; Click Delete again to confirm the deletion. Be careful, there is no progress bar to cancel the deletion once it is confirmed. |
Running and Stopping Pipelines
-
Click
Projects from the primary navigation menu.
Your project library opens, listing the existing projects. -
Click a project in the list.
The project opens on its job library. -
Click
Pipelines from the secondary navigation menu to open the project’s pipeline library.
-
You can either:
-
Click Run
or Stop
in front of the desired pipeline from the library.
-
Open the pipeline details and start or stop the run from there.
-
Click the desired pipeline to open its details.
By default, theOverview page opens.
-
Click either Run
or Stop
depending of the current status of your pipeline.
You can also access this command at the bottom of the secondary navigation menu from the Instances and
Versions page.
-
The pipeline status changes depending on the outcome.
-
A pipeline is
Succeeded
when all its jobs have been successfully executed or skipped. -
A pipeline is
Failed
as soon as one or more of its jobs has failed. -
Jobs that follow a failed job are always
Skipped
.
-
Modifying Pipeline Settings
-
Click
Projects from the primary navigation menu.
Your project library opens, listing the existing projects. -
Click a project in the list.
The project opens on its job library. -
Click
Pipeline from the secondary navigation menu to open the project’s pipeline library.
-
From the list, click a pipeline to access its details.
The pipelineOverview page opens.
-
From the
Overview page (a) or in
Edit mode (b), click the desired setting to edit it:
Figure 1. Pipeline Settings from the Overview PageFigure 2. Pipeline Settings in the Edit ModeNames are mandatory, with a maximum of 255 characters, and unique within a project.
Descriptions are optional and have no restrictions, but it is a good practice to add them and keep them short and informative.
Click the switch in the side panel of the setting to enable or disable it. There are two runtime types:
-
The manual run, which requires you to click Run to start the pipeline.
-
The scheduled run, which launches the pipeline according to the schedule you choose.
Scheduled pipelines can also be started manually. The Scheduled run type has three schedule modes:
Simple
,Shortcut
, andExpert
.-
In
Simple
mode, you can easily specify variables through the user interface. There are many possibilities. -
In
Shortcut
mode, you can choose the recurrence of your run on an hourly, daily, weekly, monthly, or annual basis. All other settings are automatic. -
In
Expert
mode, you can specify variables using the Cron format. The Cron time string consists of five values separated by spaces:[minute] [hour] [day of the month] [month] [day of the week]
. They are based on the following information:Table 1. Cron format Descriptor Acceptable values Minute
0 to 59, or *
Hour
0 to 23, or *
Day of the month
1 to 31, or *
Month
1 to 12, or *
Day of the week
0 to 7 (0 and 7 both represent Sunday), or *
The Cron time string must contain entries for each character attribute. If you want to set a value using only minutes, you must have asterisk (*) characters for the other four attributes that you are not configuring. Once you have finished scheduling your run, you will see the summary of your choice written below and the time of the next run.
-
Click the switch in the side panel of the setting to enable or disable it. Alerts are optional and can be set to receive an email when the status of your pipeline changes. They can be sent to multiple email addresses to notify you of the following status changes:
Status Description Requested
The pipeline’s run has been requested and is being executed.
Queued
The pipeline is waiting for the necessary resources to be executed.
Running
The pipeline is up and running.
Failed
The pipeline has crashed.
Stopping
The pipeline is stopping.
Stopped
The pipeline has stopped running.
Succeeded
The pipeline has been successfully executed.
Unknown
The pipeline no longer runs because an error has occurred.
Click the switch in the side panel of the setting to enable or disable it. This setting can be used to:
-
Manage Environment Variables on the Fly
You can create, modify, and delete pipeline environment variables on the fly from the Variables side panel. Changes made from this panel will update the pipeline
Environment variables page accordingly.
You do not have to enable the setting for this to work. For more information, see Managing Pipeline Environment Variables on the Fly.
-
Transfer Variables Between Jobs During Pipeline Execution
-
When enabled
, it allows you to transfer modified and created variables between jobs during pipeline execution. In addition, you can view a summary table of used, modified, and unchanged variables for each job in the pipeline
Overview and
Instances pages.
This feature is based on advanced mechanisms that require more resources that would be wasted if not used efficiently. Therefore, we recommend to disable this option if it has no real use during the execution of the pipeline to have correct optimization. -
When disabled
, modification and transfer of variables between jobs during pipeline execution is not allowed. You can still read global, project, and pipeline environment variables, but not modify them.
-
The second part of the
Overview page indicates whether the setting is enabled or not.
-
Each pipeline instance indicates whether it was executed with the setting enabled or not.
-
For more information, see Creating and Modifying Variables in a Job Output.
-
-
-
Saving is automatic. You can just press Enter to confirm the pipeline name change, click anywhere nearby to confirm the description change, and close the side panel to confirm the scheduled run, email alert, and environment variable changes.
Upgrading Pipelines
-
Click
Projects from the primary navigation menu.
Your project library opens, listing the existing projects. -
Click a project in the list.
The project opens on its job library. -
Click
Pipelines from the secondary navigation menu to open the project’s pipeline library.
-
From the list, click a pipeline to access its details.
The pipelineOverview page opens.
-
From the
Instances or
Versions page, click Upgrade pipeline
.
You can also click Edit from the
Overview page.
The page for editing your pipeline opens.
-
You can:
-
Design your pipeline → Move jobs and conditions anywhere on the design grid.
-
Add or remove jobs and conditions →
-
Click Add job or Add condition and select an item from the list to add a job or a condition to the pipeline.
-
Click the job or condition card and select
Remove to remove it from the pipeline.
-
-
Add or remove links →
-
Link the connectors of a job or condition to create connections between them.
-
Click the small grey cross
in the middle of a link to remove the link between jobs or conditions.
-
-
Modify settings → Change the pipeline name, description, scheduled run, email alerts, and environment variables.
Changes made only to metadata such as name, description, scheduled run, email alerts, and environment variables do not trigger the creation of a new pipeline version. -
Manage the release note → Add or modify the release note.
-
Your pipeline has been upgrade and you should see that a new version of it has been created, along with a new instance.
Managing Pipeline Environment Variables on the Fly
-
Click
Projects from the primary navigation menu.
Your project library opens, listing the existing projects. -
Click a project in the list.
The project opens on its job library. -
Click
Pipelines from the secondary navigation menu to open the project’s pipeline library.
-
From the list, click a pipeline to access its details.
The pipelineOverview page opens.
-
Click
Variables.
A panel opens with the existing variables in a code block.You can also access this setting from the edit mode by clicking Edit from the pipeline
Overview page.
-
In the code block, add, modify, or delete variables.
How to set pipeline environment variables?-
A pipeline environment variable includes a key (name), an equal sign, and a value.
-
The name is mandatory. It must begin with a letter and can be up to 128 characters, including alphanumeric characters (a-z) (A-Z) (0-9) and underscores (_).
-
Values can be up to 2,048 characters.
-
A line is equal to an environment variable.
-
A line that begins with a hash sign (#) is a comment line. This content will be ignored.
-
If the same key is defined several times, only the value of the last occurrence of this key will be saved.
-
Environment variables defined as passwords are not listed here, nor can they be defined as such.
⇒ Read the embedded help for more information.
-
These changes will update the pipeline Environment variables page accordingly.