BYU Deploy App Skip to main content

BYU Deploy App

Automate and schedule the process to build and deploy BYU Mendix apps

Overview

Build deployment pipelines in the BYU Deploy app to automate the process of building a package for a BYU Mendix application from a branch, running unit tests, and deploying to an environment, as well as creating the Request For Change in ServiceNow (from a Standard Change template), and closing the RFC when the deployment has succeeded. You can run the process at a scheduled time or have it initiate on a "trigger," for example, when you commit to a branch.

  1. Set up Mendix API Key and Personal Access Token
  2. Set API Permissions in Your Mendix App
  3. Register API Key and PAT in Your Mendix App
  4. Register API Key and PAT in the BYU Deploy App
  5. Design a Pipeline in Your Mendix App
  6. Create a Pipeline in the BYU Deploy App
  7. Run a Deployment Pipeline in the BYU Deploy App

1. Set up Mendix API Key and Personal Access Token

This is done once, then the API Key and PAT are used in all your Mendix apps and the BYU Deploy app.

1. Sign in to Mendix, go to your User Profile (icon in the upper right), and go to Developer Settings.

2. Create an API Key or use an existing one. Be sure to save the generated API Key somewhere safe. You can't go back in and see the key. It's only displayed when you first create it.

3. Create a Personal Access Token with the proper scope to use the BYU Deploy app, which uses Mendix APIs to monitor the Git repositories, use webhooks, view and create pipelines, and deploy to the Mendix Cloud. Like the API Key, be sure to save the generated Personal Access Token somewhere safe. You can't go back in and see it. It's only displayed when you first create it.

The image below is a summary of the permissions you need.

Mendix personal access token scope

Note: The Pipelines feature and its API are in Beta so these permissions may need to be updated in the future. New features may be added by Mendix that require additional scope. You can't add new scope to an existing Personal Access Token. You have to create a new one with the scope that you need, then register the updated one in the BYU Deploy app and each of your Mendix applications.

2. Set API Permissions in Your Mendix App

In the Environments page of your application's Deployment console at cloud.home.mendix.com, under the Permissions tab, make sure you have API Rights.

Mendix environment permissions

3. Register API Key and PAT in Your Mendix App

On the Pipelines page of your application's Deployment console at cloud.home.mendix.com, under the Settings tab, set up access to its pipelines.

If there are no pipelines yet, you will have to design one before you can see the Settings page to set up your API Key and PAT. See Step 5 below.

Mendix pipeline register API key and PAT

Click on the Setup button and enter your API Key and PAT (see Step 1 above).

Mendix pipeline enter API key and PAT

4. Register API Key and PAT in the BYU Deploy App

This is done only once in the BYU Deploy app.

On the Home page of the Mendix Deploy app, select the Manage API Info button and enter the API Key and PAT from Step 1 above, and your Mendix username, which is usually an email address, like myuser@byu.edu.

Mendix deploy manage API
Mendix deploy enter API and PAT

5. Design a Pipeline on Your Mendix App

Design a pipeline on the Pipelines page of your application's Deployment console at cloud.home.mendix.com. After you've built it, you will copy the Pipeline ID into a new pipeline that you will build in the BYU Deploy app (Step 6 below). You will run the pipeline from the BYU Deploy app (Step 7 below).

See the following Mendix documentation about managing and designing pipelines and using the Pipeline API.

Pipelines

CI/CD Pipeline Using APIs

6. Create a Pipeline in the BYU Deploy App

Under construction

7. Run a Deployment Pipeline in the BYU Deploy App

Under construction