use jdk8 on jenkins

This commit is contained in:
spalger
2016-02-20 13:15:08 -08:00
parent 50943f59ce
commit 142fe1e452

View File

@ -48,6 +48,10 @@ 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;