Skip to content

Commit

Permalink
Merge pull request #5951 from jbudz/issues/5799
Browse files Browse the repository at this point in the history
[build] Create os packages on jenkins
  • Loading branch information
spalger committed Feb 1, 2016
2 parents 2c75de1 + 4f827c8 commit 94a10ef
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
56 changes: 29 additions & 27 deletions tasks/build/index.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
module.exports = function (grunt) {
let { flatten } = require('lodash');

grunt.registerTask('build', flatten([
'_build:getProps',
'clean:build',
'clean:target',
'_build:downloadNodeBuilds:start',
'copy:devSource',
'babel:build',
'_build:babelOptions',
'_build:installedPlugins',
'_build:packageJson',
'_build:readme',
'_build:installNpmDeps',
'_build:removePkgJsonDeps',
'clean:testsFromModules',
'clean:deepModuleBins',
'clean:deepModules',
'run:optimizeBuild',
'stop:optimizeBuild',
'_build:downloadNodeBuilds:finish',
'_build:versionedLinks',
'_build:archives',
!grunt.option('os-packages') ? [] : [
'_build:pleaseRun',
'_build:osPackages',
],
'_build:shasums'
]));
grunt.registerTask('build', 'Build packages', function (arg) {
grunt.task.run(flatten([
'_build:getProps',
'clean:build',
'clean:target',
'_build:downloadNodeBuilds:start',
'copy:devSource',
'babel:build',
'_build:babelOptions',
'_build:installedPlugins',
'_build:packageJson',
'_build:readme',
'_build:installNpmDeps',
'_build:removePkgJsonDeps',
'clean:testsFromModules',
'clean:deepModuleBins',
'clean:deepModules',
'run:optimizeBuild',
'stop:optimizeBuild',
'_build:downloadNodeBuilds:finish',
'_build:versionedLinks',
'_build:archives',
(grunt.option('os-packages') || arg === 'ospackages') ? [
'_build:pleaseRun',
'_build:osPackages',
] : [],
'_build:shasums'
]));
});
};
2 changes: 1 addition & 1 deletion tasks/jenkins.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = function (grunt) {

grunt.registerTask('jenkins', 'Jenkins build script', compact([
'test',
process.env.JOB_NAME === 'kibana_core' ? 'build' : null
process.env.JOB_NAME === 'kibana_core' ? 'build:ospackages' : null
]));

};

0 comments on commit 94a10ef

Please sign in to comment.