Skip to content

Commit c345061

Browse files
feat: updating pipelines docs
1 parent 75c897d commit c345061

1 file changed

Lines changed: 28 additions & 40 deletions

File tree

content/en/docs/deployment/mendix-cloud-deploy/pipelines.md

Lines changed: 28 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: "Describes how to design, implement, and review pipelines using the
77

88
## Introduction
99

10-
From the **Pipelines** page, you can set up automated build, test, and deployment pipelines for your app. Once you have designed and activated a pipeline, you can use it for automated, zero-click builds, testing and deployments. Each pipeline runs automatically according to the trigger conditions defined in your [Start Pipeline step](#pipeline-steps).
10+
From the **Pipelines** page, once you have designed and activated a pipeline, you can use it for automated, zero-click builds, testing and deploying your apps. Each pipeline runs automatically according to the trigger conditions defined in your [Start Pipeline](#pipeline-steps) step.
1111

1212
To access the **Pipelines** page, open your app in [Apps](https://sprintr.home.mendix.com/). Then select **Pipelines** in the navigation pane. (To view this page, you must have a [role](/developerportal/general/team/) with cloud access.)
1313

@@ -21,19 +21,17 @@ You need to configure your user settings so that you can run a pipeline for the
2121

2222
## The Runs Tab{#runs-tab}
2323

24-
{{< figure src="/attachments/deployment/mendix-cloud-deploy/pipelines/runs_tab.png" alt="" >}}
25-
2624
For each run, you can view the following information:
2725

28-
* Status – Whether the run succeeded, failed, or is in progress
29-
* Run ID – The unique identifier of the run
30-
* Pipeline ID – The unique identifier of the pipeline design used for the run (column hidden by default)
31-
* Branch – The branch, if **Teamserver push (Git)** was used as the pipeline's trigger
32-
* Pipeline Name – The name of the pipeline design used for the run
33-
* Triggered by – The user who triggered the pipeline run
34-
* Run – The number of days since the pipeline run
35-
* Duration – The time the pipeline took to complete the run
36-
* Trigger – The trigger type for the run
26+
* **Status** – Whether the run succeeded, failed, or is in progress
27+
* **Run ID** – The unique identifier of the run
28+
* **Pipeline ID** – The unique identifier of the pipeline design used for the run (column hidden by default)
29+
* **Branch** – The branch, if **Teamserver push (Git)** was used as the pipeline's trigger
30+
* **Pipeline Name** – The name of the pipeline design used for the run
31+
* **Triggered By** – The user who triggered the pipeline run
32+
* **Triggered** – The number of days since the pipeline run
33+
* **Duration** – The time the pipeline took to complete the run
34+
* **Trigger Type** – The trigger type for the run
3735

3836
Use the Column Selector ({{% icon name="view" %}}) at the top of the **Runs** table to customize which of these columns appear in the table.
3937

@@ -45,11 +43,11 @@ The search and filter options allow you to review specific run types. You can do
4543

4644
### Run Results
4745

48-
To see the results of a particular run, click **Results** ({{% icon name="paper-clipboard" %}}).
46+
To see the results of a particular run, click **Details** ({{% icon name="paper-clipboard" %}}).
4947

5048
{{< figure src="/attachments/deployment/mendix-cloud-deploy/pipelines/run-details.png" alt="" >}}
5149

52-
From this page, you can view an overview of the run. You can also expand each executed step to see more information about it; this is especially useful for debugging when a pipeline run fails. When you expand a step, you can also see a **View Parameters** button, which you can use to view the input and output parameters as well as the values of the step.
50+
This page provides an overview of the run details. You can also expand each executed step to see more information about it; this is especially useful for debugging when a pipeline run fails. When you expand a step, you can also see a **View Parameters** button, which you can use to view the input and output parameters as well as the values of the step.
5351

5452
At the top of the page, there are several cards that display important information, such as whether the run succeeded or failed. If it failed, it includes information about the error that caused the run failure. There are two types of errors: step-level errors and system-level errors.
5553

@@ -65,23 +63,21 @@ If a step fails, that step is flagged with an error icon ({{% icon name="alert-t
6563

6664
System-level errors occur if [user settings](#configure-settings) have not been configured or if an internal Mendix component is down.
6765

68-
If a system-level error occurs, the card in the upper-left corner of the **Results** page identifies the error that caused the run to fail. Click **See details** on the card to view more information about the error.
66+
If a system-level error occurs, the card in the upper-left corner of the **Details** page identifies the error that caused the run to fail. Click **See details** on the card to view more information about the error.
6967

7068
## The Designs Tab{#designs-tab}
7169

72-
{{< figure src="/attachments/deployment/mendix-cloud-deploy/pipelines/designs_tab.png" alt="" >}}
73-
7470
On the **Designs** tab, you can see all existing pipeline designs.
7571

7672
For each design, you can view the following information:
7773

78-
* Pipeline Name – The name of the pipeline design
79-
* Trigger – The trigger type for the design
80-
* Branch – The branch, if **Teamserver push (Git)** is set as the design's trigger
81-
* Last modified by – The user who last modified the design
82-
* Last modified date/time – The date and time the design was last modified
83-
* Status – Whether the pipeline is active or inactive
84-
* Design ID – The unique identifier of the pipeline design
74+
* **Pipeline Name** – The name of the pipeline design
75+
* **Trigger Type** – The trigger type for the design
76+
* **Branch** – The branch, if **Teamserver push (Git)** is set as the design's trigger
77+
* **Last modified By** – The user who last modified the design
78+
* **Last modified** – The date and time the design was last modified
79+
* **Status** – Whether the pipeline is active or inactive
80+
* **Design ID** – The unique identifier of the pipeline design
8581

8682
Click **Copy ID** ({{% icon name="copy" %}}) on a pipeline design to copy the design ID.
8783

@@ -95,16 +91,16 @@ If you delete a pipeline design in the **Designs** tab, any run history associat
9591

9692
### Designing a New Pipeline{#design-pipeline}
9793

98-
To design a new pipeline, click **Design a Pipeline** from any tab. That launches the **Design a Pipeline** dialog box. You can choose to start from a template pipeline or an empty pipeline.
94+
To design a new pipeline, click **Design a Pipeline** from any tab. That launches the **Design a Pipeline** dialog box. You can choose to start from a **Template Pipeline** or an **Empty Pipeline**.
9995

10096
{{% alert color="info" %}}
10197
If you start from the template, you can still add, remove, and configure its steps to match your needs; it is just intended to help you get started quickly. The template pipeline is pre-populated with the following basic steps:
10298

10399
1. Start Pipeline
104-
1. Checkout
105-
1. Build
106-
1. Publish
107-
1. Deploy
100+
2. Checkout
101+
3. Build
102+
4. Publish
103+
5. Deploy
108104
{{% /alert %}}
109105

110106
Give your pipeline a name. You can use up to 40 alphanumeric characters in the name. Then click **Next** to go to your new pipeline design's **Details** page.
@@ -113,8 +109,6 @@ Give your pipeline a name. You can use up to 40 alphanumeric characters in the n
113109

114110
From your pipeline design's **Details** page, you can add, remove, and configure the steps in your pipeline. You can also click **More Options** ({{% icon name="three-dots-menu-horizontal" %}}) next to the pipeline name to edit the name.
115111

116-
{{< figure src="/attachments/deployment/mendix-cloud-deploy/pipelines/pipeline-design.png" alt="" >}}
117-
118112
{{% alert color="info" %}}
119113
For pipelines that are currently running, the page shows the current state of the steps (finished, running, or not started).
120114

@@ -155,7 +149,7 @@ Evaluate results of the [Maia Best Practice Recommender](/refguide/best-practice
155149

156150
##### Unit Testing{#unit-testing}
157151

158-
[Unit Testing](/appstore/modules/unit-testing/) module can perform regression testing on an environment in which a new deployment package has been deployed. This step executes the Unit Testing module in a running environment. If any unit test fails, the pipeline will be marked as failed, with the run details and output parameters showing the failure count and relevant information. Ensure to add below prerequisites before you add the Unit Testing pipeline step:
152+
[Unit Testing](/appstore/modules/unit-testing/) module can perform regression testing on an environment in which a new deployment package has been deployed. This step executes the Unit Testing module in a running environment. If any unit test fails, the pipeline will be marked as failed, with the run details and output parameters showing the failure count and relevant information. Ensure to add the prerequisites below before you add the Unit Testing pipeline step:
159153

160154
* Import the [Unit Testing](https://marketplace.mendix.com/link/component/390) module into your Mendix application from the Marketplace.
161155
* The environment in which Unit Testing needs to happen should be in a running state.
@@ -182,7 +176,7 @@ Create and store a backup of an existing environment before deploying a new depl
182176

183177
##### Deploy
184178

185-
Deploy to a selected environment. In this step's configuration, there is a **Use defaults for new constants** toggle that you can use to fetch the default values of new constants and scheduled events from Studio Pro and apply them to the environment. (To adjust an environment-specific configuration, see the [Environments](/developerportal/deploy/environments/) page.)
179+
Deploy to a selected environment. In this step's configuration, there is a **Use default values for new constants** toggle that you can use to fetch the default values of new constants and scheduled events from Studio Pro and apply them to the environment. (To adjust an environment-specific configuration, see the [Environments](/developerportal/deploy/environments/) page.)
186180

187181
##### Promote Package
188182

@@ -192,7 +186,7 @@ Promote a deployment package from a source environment to a target environment.
192186

193187
If you select **Teamserver push (Git)** as the trigger in the Start Pipeline step, you need to specify the relevant branch (or branches) in the **Branch expression** field.
194188

195-
If you want the pipeline to run when there is a push to one specific branch, you can type the name of that branch. Or, if you want to specify multiple branches, you can use an asterisk (`*`) as a wildcard in this field. The asterisk means "match zero or more of any character."
189+
If you want the pipeline to run when there is a push to one specific branch, you can type the name of that branch. Also, you can specify multiple branches by using an asterisk (`*`) as a wildcard in this field. The asterisk means "match zero or more of any character."
196190

197191
Here are some examples of valid branch expressions:
198192

@@ -255,16 +249,12 @@ The pipeline design's status (**Active** or **Inactive**) is displayed in the ov
255249

256250
## The Variables Tab{#variable-tab}
257251

258-
{{< figure src="/attachments/deployment/mendix-cloud-deploy/pipelines/variables-tab.png" alt="" >}}
259-
260252
The **Variables** tab allows you to create user-defined pipeline variables, for example, Unit Testing Remote API Key which can be referenced in Pipeline designs for the application. It is useful when you want to use the same value in multiple pipelines or avoid storing secret credentials as plain text in your pipeline step.
261253

262254
### Creating a New Variable
263255

264256
To create a new variable, click **Create New Variable** from the **Variables** tab and open a dialog box. Enter a name for your variable in the **Name** field. The variable name must begin with a letter or underscore. (`_`) and must be unique from existing variables.
265257

266-
{{< figure src="/attachments/deployment/mendix-cloud-deploy/pipelines/create_variable.png" alt="" >}}
267-
268258
Click **Save Variable** to save your variable. You can now select it in the unit testing step and in other steps that allow the use of variables in the future.
269259

270260
Click **More Options** ({{% icon name="three-dots-menu-horizontal-filled" %}}) > **Edit** on a saved variable to edit and update the variable or its value.
@@ -277,8 +267,6 @@ While editing a saved variable, selecting **Mask > No** will allow you to verify
277267

278268
## The Settings Tab{#settings-tab}
279269

280-
{{< figure src="/attachments/deployment/mendix-cloud-deploy/pipelines/the_settings_tab.png" >}}
281-
282270
The **Settings** tab lets you configure user settings. You must add your API key and personal access token (PAT) before you can activate or run your first pipeline. If you still need to configure these user settings, the **Settings** tab is marked with an alert icon ({{% icon name="alert-circle-filled" color="red" %}}).
283271

284272
Adding your API key and PAT allows your existing permissions to be used to run the pipeline. For example, if the trigger in your Start Pipeline step is set to **Teamserver push (Git)**, then the pipeline runs whenever someone pushes to the specified branch. However, if that user has not configured their user settings yet, then the pipeline run will fail.

0 commit comments

Comments
 (0)