You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/deployment/mendix-cloud-deploy/pipelines.md
+28-40Lines changed: 28 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ description: "Describes how to design, implement, and review pipelines using the
7
7
8
8
## Introduction
9
9
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.
11
11
12
12
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.)
13
13
@@ -21,19 +21,17 @@ You need to configure your user settings so that you can run a pipeline for the
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.
53
51
54
52
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.
55
53
@@ -65,23 +63,21 @@ If a step fails, that step is flagged with an error icon ({{% icon name="alert-t
65
63
66
64
System-level errors occur if [user settings](#configure-settings) have not been configured or if an internal Mendix component is down.
67
65
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.
On the **Designs** tab, you can see all existing pipeline designs.
75
71
76
72
For each design, you can view the following information:
77
73
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
85
81
86
82
Click **Copy ID** ({{% icon name="copy" %}}) on a pipeline design to copy the design ID.
87
83
@@ -95,16 +91,16 @@ If you delete a pipeline design in the **Designs** tab, any run history associat
95
91
96
92
### Designing a New Pipeline{#design-pipeline}
97
93
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**.
99
95
100
96
{{% alert color="info" %}}
101
97
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:
102
98
103
99
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
108
104
{{% /alert %}}
109
105
110
106
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
113
109
114
110
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.
For pipelines that are currently running, the page shows the current state of the steps (finished, running, or not started).
120
114
@@ -155,7 +149,7 @@ Evaluate results of the [Maia Best Practice Recommender](/refguide/best-practice
155
149
156
150
##### Unit Testing{#unit-testing}
157
151
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:
159
153
160
154
* Import the [Unit Testing](https://marketplace.mendix.com/link/component/390) module into your Mendix application from the Marketplace.
161
155
* 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
182
176
183
177
##### Deploy
184
178
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.)
186
180
187
181
##### Promote Package
188
182
@@ -192,7 +186,7 @@ Promote a deployment package from a source environment to a target environment.
192
186
193
187
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.
194
188
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."
196
190
197
191
Here are some examples of valid branch expressions:
198
192
@@ -255,16 +249,12 @@ The pipeline design's status (**Active** or **Inactive**) is displayed in the ov
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.
261
253
262
254
### Creating a New Variable
263
255
264
256
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.
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.
269
259
270
260
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
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" %}}).
283
271
284
272
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