- Make sure you added the Mule Maven Plugin to your
file.pom.xml
- Inside the plugin element, add a configuration for your ARM deployment as shown below:
<plugin>
...
<configuration>
<armDeployment>
<uri>https://anypoint.mulesoft.com</uri>
<target>${target}</target>
<targetType>${target.type}</targetType>
<username>${username}</username>
<password>${password}</password>
<environment>${environment}</environment>
</armDeployment>
</configuration>
</plugin>
- Here is the content of our
:Jenkinsfile
-
pipeline { agent any stages { stage('Unit Test') { steps { sh 'mvn clean test' } } stage('Deploy Standalone') { steps { sh 'mvn deploy -P standalone' } } stage('Deploy ARM') { environment { ANYPOINT_CREDENTIALS = credentials('anypoint.credentials') } steps { sh 'mvn deploy -P arm -Darm.target.name=local-3.9.0-ee -Danypoint.username=${ANYPOINT_CREDENTIALS_USR} -Danypoint.password=${ANYPOINT_CREDENTIALS_PSW}' } } } }