diff --git a/Jenkinsfile b/Jenkinsfile index 29365e947..80dffa13a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,6 +39,10 @@ def runTests(String image) { export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH cd java-client-api + echo "Temporary fix for mysterious issue with okhttp3 being corrupted in local Maven cache." + ls -la ~/.m2/repository/com/squareup + rm -rf ~/.m2/repository/com/squareup/okhttp3/ + echo "Ensure all subprojects can be built first." ./gradlew clean build -x test @@ -90,6 +94,10 @@ def runTestsWithReverseProxy(String image) { export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH cd java-client-api + echo "Temporary fix for mysterious issue with okhttp3 being corrupted in local Maven cache." + ls -la ~/.m2/repository/com/squareup + rm -rf ~/.m2/repository/com/squareup/okhttp3/ + echo "Ensure all subprojects can be built first." ./gradlew clean build -x test @@ -188,6 +196,10 @@ pipeline { export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH cd java-client-api + echo "Temporary fix for mysterious issue with okhttp3 being corrupted in local Maven cache." + ls -la ~/.m2/repository/com/squareup + rm -rf ~/.m2/repository/com/squareup/okhttp3/ + echo "Ensure all subprojects can be built first." ./gradlew clean build -x test