mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
---------
**Commit 1:**
[internal] Reject CI builds if any .rej files exist
.rej are the byproduct of failed patches via git-apply or artifacts of
the backporting process through jasper. Any build that has them should
be rejected early.
* Original sha: 55e429cc4f
* Authored by Court Ewing <court@epixa.com> on 2016-03-29T17:24:24Z
25 lines
688 B
JavaScript
25 lines
688 B
JavaScript
import { compact } from 'lodash';
|
|
import { delimiter } from 'path';
|
|
|
|
module.exports = function (grunt) {
|
|
grunt.registerTask('jenkins', 'Jenkins build script', function () {
|
|
// 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);
|
|
|
|
// always build os packages on jenkins
|
|
grunt.option('os-packages', true);
|
|
|
|
grunt.task.run(compact([
|
|
'rejectRejFiles',
|
|
'test',
|
|
process.env.JOB_NAME === 'kibana_core' ? 'build' : null
|
|
]));
|
|
});
|
|
|
|
};
|