logstash/ci/ci_docs.sh
Andrew Cholakian 041fca924f Never use gradle daemon on CI servers
We've had some issues with builds crashing the gradle daemon on CI servers. This can obfuscate errors.
This patch removes its usage in CI.

This is considered a gradle best practice: https://docs.gradle.org/current/userguide/gradle_daemon.html#sec:stopping_an_existing_daemon

Fixes #9240
2018-03-14 22:02:27 +00:00

15 lines
512 B
Bash
Executable file

#!/usr/bin/env bash
set -e
export JRUBY_OPTS="-J-Xmx2g"
export GRADLE_OPTS="-Xmx2g -Dorg.gradle.daemon=false"
rake bootstrap
# needed to workaround `group => :development`
rake test:install-core
rake plugin:install-default
echo "Generate json with plugins version"
# Since we generate the lock file and we try to resolve dependencies we will need
# to use the bundle wrapper to correctly find the rake cli. If we don't do this we
# will get an activation error,
./bin/bundle exec rake generate_plugins_version