Commit d0857e76 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add GIT_COMMIT to build.

delete unused task increment_build
parent bd4c4a96
......@@ -121,17 +121,10 @@ module.exports = function(grunt) {
grunt.log.ok('Use Jenkins build number as sdk-all build number!'.yellow);
packageFile['info']['build'] = parseInt(process.env['BUILD_NUMBER']);
pkg.info.build = packageFile['info']['build'];
packageFile['info']['rev'] = process.env['SVN_REVISION'] || revision;
packageFile['info']['rev'] = process.env['GIT_COMMIT'] || revision;
grunt.file.write(defaultConfig, JSON.stringify(pkg, null, 4));
}
});
grunt.registerTask('increment_build', function() {
var pkg = grunt.file.readJSON(defaultConfig);
pkg.info.build = parseInt(pkg.info.build) + 1;
packageFile['info']['rev'] = process.env['SVN_REVISION'] || revision;
grunt.file.write(defaultConfig, JSON.stringify(pkg, null, 4));
});
});
grunt.registerTask('compile_sdk_init', function(compilation_level) {
grunt.file.mkdir( packageFile['compile']['sdk']['log'] );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment