[JAVA-2356] Reuse compilation artifacts from compile task in test tasks Created: 13/Oct/16  Updated: 03/Jan/17  Resolved: 29/Dec/16

Status: Closed
Project: Java Driver
Component/s: Continuous Integration
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by JAVA-2357 Add JDK axis to Evergreen matrix Closed
Related

 Description   

While this is essentially what we now do in Jenkins using its "Copy Workspace" functionality, it may not be necessary in Evergreen since it's easy in a single task to use Java 8 to compile production and test classes, and then any other version of Java to run the tests with something like:

gradlew -Porg.gradle.java.home=/opt/java/java6 -x classes -x testClasses --rerun-tasks test 

or

export JAVA_HOME=/opt/java/java6
gradlew -x classes -x testClasses --rerun-tasks test 

Compilation itself takes less than 30 seconds so there's not a whole lot of savings to be had by re-using the artifacts.

We would need it, however, to test on any platform without a Java 8 JDK available.



 Comments   
Comment by Jeffrey Yemin [ 29/Dec/16 ]

Determined that there's no need for this.

Generated at Thu Feb 08 08:57:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.