Description
When running unit tests, gradle checks for the ES snapshot regardless of whether it gets downloaded or not. This means that for unit tests that don't need to download ES, it is still checking for the snapshot. This is causing unnecessary build failures:
09:48:18 FAILURE: Build failed with an exception.
09:48:18
09:48:18 * Where:
09:48:18 Build file '/var/lib/jenkins/workspace/elastic+logstash+7.x+multijob-matrix-jdk-unix-java-unit-tests/LS_RUNTIME_JAVA/adoptopenjdk11/os/centos-7&&immutable/build.gradle' line: 410
09:48:18
09:48:18 * What went wrong:
09:48:18 A problem occurred evaluating root project 'logstash'.
09:48:18 > https://artifacts-api.elastic.co/v1/versions/7.9.0-SNAPSHOT/builds/7.9.0-fcf4be0e/projects/elasticsearch/packages/elasticsearch-7.9.0-SNAPSHOT-linux-x86_64.tar.gz
09:48:18
09:48:18 * Try:
09:48:18 Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
09:48:18
09:48:18 * Get more help at https://help.gradle.org