Commit 60eb53e9 authored by Alexey.Golubev's avatar Alexey.Golubev Committed by Alexander.Trofimov

Исправлена подстановка номера ревизии при билде не из под дженкинса.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68739 954022d7-b5bf-4e40-9824-e11837661b57
parent 241a07c7
......@@ -16,9 +16,9 @@ module.exports = function(grunt) {
grunt.util.spawn({
cmd: 'svnversion',
args: ['../../../../../'],
args: ['../../'],
}, function (error, result, code) {
if (null !== error) {
if (null === error) {
revision = result;
}
......@@ -177,6 +177,7 @@ module.exports = function(grunt) {
packageFile['info']['rev'] = process.env['SVN_REVISION'];
}
else{
grunt.log.ok('Use revision number \"' + revision + '\" from svnversion!'.yellow);
packageFile['info']['rev'] = revision;
}
grunt.file.write(defaultConfig, JSON.stringify(pkg, null, 4));
......
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