Skip to main content

We are using Azure Devops to build a CICD pipeline for mulesoft. We are using the hybrid on prem model.

 

At the moment I have a build pipeline outputting a .jar file as an artifact using maven package

 

My Release pipeline takes this file using the Anypoint-cli and deploys it onto either dev, qa or production.

I am using the following command to modify an application and setting the correct OS env variables:

runtime-mgr standalone-application modify [options] <identifier> <zipfile>

 

I would like to pass properties using anypoint-cli along with my deployment but there doesn't appear to be an option. Whereas I notice that the cloudhub version does have the option to pass in properties.

 

Therefore, the work around I can see is to go into runtime manager on the anypoint platform to update properties manually. This works, but it is not going to be a great long term solution.

 

Is there a way to deploy an application which is already a .jar (build once, deploy anywhere), to multiple environments without having to intervene manually? We need environment variables to be set at the time of deployment, for security reasons. Therefore we can't have multiple yaml files at build time, even as secure-configuration properties.

 

Is a later version of Anypoint Platform CLI going to have this functionality?

Or perhaps have I missed something here and is this already possible?

 

Thanks so much in advance,

 

Toby.

14 respuestas
  1. 27 ene 2021, 17:13

    Do you need to stick it to exchange? I feel like that is an unnecessary turn to the goal.

0/9000