Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
ec040d4a
Commit
ec040d4a
authored
Mar 31, 2016
by
Alexey.Golubev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added build number from jenkins env
parent
f42630b4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
8 deletions
+17
-8
build/Gruntfile.js
build/Gruntfile.js
+13
-7
build/configs/webexcel.json
build/configs/webexcel.json
+1
-0
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+1
-0
build/configs/webword.json
build/configs/webword.json
+2
-1
No files found.
build/Gruntfile.js
View file @
ec040d4a
...
...
@@ -114,16 +114,22 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
update_sources_webpowerpoint
'
,
[
'
build_webpowerpoint_init
'
,
'
up_sdk_src_init
'
,
'
exec
'
]);
grunt
.
registerTask
(
'
update_sources
'
,
[
'
update_sources_webword
'
,
'
update_sources_webexcel
'
,
'
update_sources_webpowerpoint
'
]);
grunt
.
registerTask
(
'
add_build_number
'
,
function
()
{
var
pkg
=
grunt
.
file
.
readJSON
(
defaultConfig
);
if
(
undefined
!==
process
.
env
[
'
BUILD_NUMBER
'
])
{
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
;
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
;
if
(
undefined
!==
process
.
env
[
'
BUILD_NUMBER
'
])
{
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
;
grunt
.
file
.
write
(
defaultConfig
,
JSON
.
stringify
(
pkg
,
null
,
4
));
});
...
...
build/configs/webexcel.json
View file @
ec040d4a
...
...
@@ -201,6 +201,7 @@
},
"tasks"
:
{
"build"
:
[
"add_build_number"
,
"compile_sdk"
]
}
...
...
build/configs/webpowerpoint.json
View file @
ec040d4a
...
...
@@ -204,6 +204,7 @@
},
"tasks"
:
{
"build"
:
[
"add_build_number"
,
"compile_sdk"
]
}
...
...
build/configs/webword.json
View file @
ec040d4a
...
...
@@ -170,7 +170,7 @@
"../../web-apps/vendor/jszip-utils/jszip-utils.min.js"
,
"../../web-apps/vendor/jsrsasign/jsrsasign-latest-all-min.js"
],
"map"
:
"sdk-all.js.map"
,
"ma
,
p"
:
"sdk-all.js.map"
,
"log"
:
"../word/Build/Log"
},
"defines"
:
{
...
...
@@ -187,6 +187,7 @@
},
"tasks"
:
{
"build"
:
[
"add_build_number"
,
"compile_sdk"
]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment