
Questions: 23,752 //
Answers: 52,355 //
Contributing Members: 18,023
I am new to Jenkins and Maven, I want to achieve Continuous integration and build automation by using jenkins, maven, Munit for mule applications, can anyone explain this with one sample example? or please provide me any good article link on the same. The scenario i am looking is, The Mule applications should retrieve from GitLab/SVN by Jenkins and those application need deploy to cloudhub automatically by scheduled job. ( I know there is a Mule advanced course which includes these topics, but i have some concerns to take that training, i didn't received response from Mulesoft training team for it).
Dec 30, 2016 at 04:55 PM, monty22 answered with:
Hi,
in the following link you can find a detail solution to perform continuous integration: http://www.whishworks.com/blog/cloudhub/cloudhub-continuous-integration/
Aug 22, 2016 at 01:10 PM, damian.sima answered with:
Hi there,
There is nothing as you requested in the Mule official doc, and I didn't find a comprehensive example after a quick search on google either.
That said, Continuos integration as in having a project build in a CI env (in you case Jenkins) is mainly achieve by Maven and Jenkins. You see, Jenkins knows how to download code (is up to the user to set up from where), and Jenkins knows how to download code from many places (I reckon it should have something for the specific repository you guys are using) . The second part will be just to run a Maven build, again something that Jenkins is really good at, it comes down to just configure a build plan and tell it which Maven command to run I suggest you check a Jenkins tutorial for that.
When I comes to the Mule part, the munit-maven-plugin is hocked to the Maven test phase so it'll run by just running mvn test. Should the MUnit Maven plugin fails the build will fail. (FYI the build could fail due to an error, a test failure or a coverage limit no reached).
For the CloudHub deploy, again this is hocked by Maven and the Mule Maven Plugin takes care of that heres is a [link on how it works][1]
HTH [1]: https://docs.mulesoft.com/mule-user-guide/v/3.8/mule-maven-plugin
Hey, Thanks... I am able to achieve mule CI by referring some Mule docs regarding maven and for jenkins i have referred some youtube videos.
This video on jenkins is really good: https://www.youtube.com/watch?v=lTQGi5jzjvo