mulesoft-orders-api
Code
When you want to see a corporate delivery flow working on a small Mule 4 application, mulesoft-orders-api, the application from the series Delivering MuleSoft applications with Azure DevOps (starting with GitFlow for MuleSoft: branch rules a pipeline can act on), shows the current flow (2.x), in GitHub Actions: main goes to TEST, a release branch to UAT and the tag to PROD, with approval. The series describes the GitFlow flow of 1.x, which the v1.0.0 tag preserves.
The flow
What it does
- Three endpoints:
GET /api/health,GET /api/orders/{orderId}andPOST /api/orders. - Versions with the maven-release-plugin and delivers to CloudHub 2.0.
- Delivery uses the reusable workflows from github-reusable-workflows; 1.x used the templates from azure-devops-mulesoft-pipelines.
- The API is simple on purpose; what matters are the branch rules, the release process and the pipeline.
Limit: the public workflow does not run MUnit, which requires a MuleSoft customer credential, and the deployments use an Anypoint trial that ends.
Getting started
The tests need MuleSoft’s Enterprise repository, with credentials in ~/.m2/settings.xml.
mvn clean test
Where it appears
- Delivering MuleSoft applications with Azure DevOps, the series: GitFlow for MuleSoft: branch rules a pipeline can act on, Versioning Mule applications with the Maven release plugin in Azure Pipelines, Azure Pipelines templates for MuleSoft: one delivery flow, many applications and Deploying to CloudHub 2.0 from Azure Pipelines: build once, approve, verify.