always use jdk8 on jenkins
This commit is contained in:
@ -48,10 +48,6 @@ task('NODE_UNIT', true, function () {
|
||||
task('NODE_INTEGRATION', true, function () {
|
||||
var branch = ENV.ES_REF;
|
||||
|
||||
if (branch === 'master' || branch.match(/^[3-9]/)) {
|
||||
process.env.JAVA_HOME = '/usr/lib/jvm/jdk8';
|
||||
}
|
||||
|
||||
return node('scripts/generate', '--no-api', '--branch', branch)
|
||||
.then(function () {
|
||||
var target = (JENKINS ? 'jenkins_' : '') + 'integration:' + branch;
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
export JAVA_HOME="/usr/lib/jvm/jdk8"
|
||||
lockpath="/var/lock/setup_nodejs"
|
||||
|
||||
# pass a file name to aquire a lock
|
||||
@ -64,4 +65,4 @@ install_node "$NODE_V"
|
||||
npm install
|
||||
release_lock
|
||||
|
||||
ES_PATH_REPO="./.es-snapshot-repos/$EXECUTOR_NUMBER/" ES_PORT=$((9400 + EXECUTOR_NUMBER)) RUN=NODE_UNIT,NODE_INTEGRATION VERBOSE=true node ./scripts/ci.js
|
||||
ES_PATH_REPO="./.es-snapshot-repos/$EXECUTOR_NUMBER/" ES_PORT=$((9400 + EXECUTOR_NUMBER)) RUN=NODE_UNIT,NODE_INTEGRATION VERBOSE=true node ./scripts/ci.js
|
||||
|
||||
Reference in New Issue
Block a user