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
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.

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

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
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.

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

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.


5. Design a Pipeline on Your Mendix App
Design a pipeline
See the following Mendix documentation about managing and designing pipelines and using the Pipeline API.
6. Create a Pipeline in the BYU Deploy App
Under construction
7. Run a Deployment Pipeline in the BYU Deploy App
Under construction