Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Peter Kahn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 2, 2013

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
Answer accepted
Peter Kahn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 3, 2013

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
TAGS
AUG Leaders

Atlassian Community Events