File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,11 @@ const apiBranch = process.argv[2] || 'master';
2929syncDocs ( ) ;
3030
3131async function syncDocs ( ) {
32+ // 蓝盾触发构建
33+ const isFromDevops = process . argv [ 3 ]
3234 // 先检测下是内网还是外网
3335 const isAtTencent = await utils . isAtTencent ( ) ;
34- if ( isAtTencent ) {
36+ if ( isFromDevops || isAtTencent ) {
3537 getApiDocs ( ) ;
3638 syncApiAssets ( ) ;
3739 } else {
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ async function isAtTencent() {
77 let is = false ;
88 try {
99 console . log ( chalk . green ( '--------检测是否为腾讯内网 start--------' ) ) ;
10- const res = await extendRequest ( 'http://9.134.210.127:3999 ' ) ; // ostwindli's devCloud
11- is = res . atTencent ;
10+ const res = await extendRequest ( 'http://8000.woa.com ' ) ; // ostwindli's devCloud
11+ is = ! ! res ;
1212 console . log ( chalk . blue ( `检测结果: ${ is } ` ) ) ;
1313 } catch ( error ) {
1414 console . log ( chalk . blue ( '检测结果: false' ) ) ;
You can’t perform that action at this time.
0 commit comments