Currently I am working in a project that integrates Gitlab + Jenkins + Maven.
This is a Maven Java project and we have UT and Integration tests.
I designed a pipeline for the CI that looks like this:
- Build Core Package and Run UT
- Build WebPage and Run UT
- Run Integration Tests written in Cucumber.
- Deploy to a staging Server
On paper this looks good but now I am trying to implement this and I am having some issues.
- Is there a simple way to save the java packages in per Git Branch? Each branch will compile and create a Jar file in step 1 that will be needed in Step 2.
- In step 3 how can I use the war built in step 2 to run the tests? Currently I have all inside the lifecycle of Maven, but cannot find a way to split this.
Thanks