476031b4ea
* build before running selenium * change directory into built snapshot * WIP: what is in the build dir * WIP: skip unit tests * run selenium on build * [functional tests on build] Derive version * [functional tests on build] Missing folder name prefix * WIP: debug on ubuntu VM * WIP: double kibana stabilize timeout * WIP: remove ubuntu VM debug change * WIP: add logs for docParams * WIP: add logs for es * build release version without -SNAPSHOT- * [functional test release] Cleanup
45 lines
1,005 B
JavaScript
45 lines
1,005 B
JavaScript
import { compact } from 'lodash';
|
|
import { delimiter } from 'path';
|
|
|
|
module.exports = function (grunt) {
|
|
// TODO: remove after migration to new CI is complete
|
|
grunt.registerTask('jenkins', compact([
|
|
'jenkins:env',
|
|
'rejectRejFiles',
|
|
'test',
|
|
process.env.JOB_NAME === 'kibana_core' ? 'build' : null
|
|
]));
|
|
|
|
grunt.registerTask('jenkins:env', () => {
|
|
// make sure JAVA_HOME points to JDK8
|
|
const HOME = '/usr/lib/jvm/jdk8';
|
|
process.env.JAVA_HOME = HOME;
|
|
|
|
// extend PATH to point to JDK8
|
|
const path = process.env.PATH.split(delimiter);
|
|
path.unshift(`${HOME}/bin`);
|
|
process.env.PATH = path.join(delimiter);
|
|
});
|
|
|
|
grunt.registerTask('jenkins:unit', [
|
|
'jenkins:env',
|
|
'rejectRejFiles',
|
|
|
|
'eslint:source',
|
|
'licenses',
|
|
'test:server',
|
|
'test:jest',
|
|
'test:browser-ci',
|
|
'test:api',
|
|
'_build:verifyTranslations',
|
|
]);
|
|
|
|
grunt.registerTask('jenkins:selenium', [
|
|
'jenkins:env',
|
|
'rejectRejFiles',
|
|
|
|
'test:uiRelease'
|
|
]);
|
|
|
|
};
|