If this is your first time using this pipeline, see the "One-Time Mendix Deploy Setup" section below. For full setup instructions for the CI/CD pipeline, see the CI/CD Setup documentation.
Branching Strategy and Process
When starting work on a story or incident, create a local branch by forking from the acceptance branch
When your code is working locally, merge commit your local branch to the acceptance branch and push the changes. Doing so will automatically deploy it to the acceptance environment.
Now that it is on the Acceptance environment, your code can be reviewed by users or testers.
After you have passed a code review, your changes have been approved, and all unit tests are passing, merge commit the acceptance branch to the main branch and push. Doing so will automatically run all unit tests in the app. If they all pass, your changes will be deployed to Prod at 2am. If any tests fail, the deployment will be cancelled. Running the unit tests and this automated process should take less than 15 minutes. Check the Mendix Deploy app to make sure the tests passed and your package is ready to be deployed at 2am.
Hotfixes/Immediate Deployments
If you must make an immediate deployment to the Production environment, you may do so by directly modifying the main branch and deploying manually with Sprintr.
After making and pushing changes on main, the pipeline will be triggered to deploy at 2am, and a job will be created on the Mendix Deploy app. Since you are deploying immediately, you may want to cancel it.
After making changes to main, you must merge the main branch into the acceptance branch, so that it does not get out of date.
One-Time Mendix Deploy Setup
Generate a Personal Access Token and API key for your pipelines
Create a Mendix Personal Access Token for your pipelines