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

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
Posted yesterday in United States

Thanksgiving Tuesday

Good morning All, First of all, Happy early Thanksgiving from the NOVA AUG Leaders! I am anticipating no one will be looking at the group on Thanksgiving Day 😊 Today's topic will be different th...

29 views 4 2
View post

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