Can I split maven compilation / package and maven test between two bamboo jobs?

Hi all,

I have a large build where tests sometimes prevent creation of artifacts. I'd like my plan to

  • build and publish my artifacts in the first job
  • run unit / integration tests in a second job

I don't want to lengthen my build time by needlessly rebuilding and repackaging my artifacts. Has anyone split a maven build like this?

Thanks

Peter

1 answer

1 accepted

This widget could not be displayed.

I asked the same question on stack overflow and got the following how to advice for splitting these maven pieces (call the plugins directly):

# Build Artifacts
mvn install -DskipTests

# Run Tests
mvn surefire:test failsafe:integration-test

I'm using two Tasks in my plan to perform these two steps.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 4 hours ago in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

18 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you