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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted 9 hours ago in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

41 views 1 2
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