Travis build is not always able to download the cached maven dependencies due to the following error:
Setting up build cache
$ export CASHER_DIR=${TRAVIS_HOME}/.casher
0.29s$ Installing caching utilities
0.00s2.54sattempting to download cache archive
fetching 1.6.2-jdk8/cache--linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--jdk-openjdk8.tgz
fetching 1.6.2-jdk8/cache-linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--jdk-openjdk8.tgz
fetching 1.6.2-jdk8/cache--jdk-openjdk8.tgz
fetching master/cache--linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--jdk-openjdk8.tgz
fetching master/cache-linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--jdk-openjdk8.tgz
fetching master/cache--jdk-openjdk8.tgz
could not download cache
0.00s1.19sadding /home/travis/.m2 to cache
The effect of this error is that all maven dependencies are downloaded from scratch at each job, producing an extremely long log that breaks the build as it exceeds the maximum size.
Please refer to those builds for having more details about the issue:
- https://travis-ci.org/HotelsDotCom/bull/jobs/617815288
- https://travis-ci.org/HotelsDotCom/bull/jobs/617730584
The build configuration is available at https://travis-ci.org/HotelsDotCom/bull/builds/617815279/config
Could you kindly help?
thanks