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?



1 answer

1 accepted

0 votes
Accepted answer

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
Published Friday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

93 views 0 5
Read article

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