cloudcc-cli 0.4.8 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/package.json +1 -1
- package/src/publish.js +10 -6
- package/src/triggerConfig.json +11 -5
- package/test/test.js +5 -0
package/README.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
# ReleaseV0.5.2
|
|
2
|
+
#### 发布日期:2021-10-20
|
|
3
|
+
#### 发布范围:全量
|
|
4
|
+
#### 发布内容
|
|
5
|
+
* 修复:uat触发地址修复
|
|
6
|
+
|
|
7
|
+
# ReleaseV0.5.1
|
|
8
|
+
#### 发布日期:2021-10-20
|
|
9
|
+
#### 发布范围:全量
|
|
10
|
+
#### 发布内容
|
|
11
|
+
* 修复:production触发地址修复
|
|
12
|
+
|
|
13
|
+
# ReleaseV0.5.0
|
|
14
|
+
#### 发布日期:2021-10-20
|
|
15
|
+
#### 发布范围:全量
|
|
16
|
+
#### 发布内容
|
|
17
|
+
* 优化:替换打包命令提示
|
|
18
|
+
|
|
19
|
+
# ReleaseV0.4.9
|
|
20
|
+
#### 发布日期:2021-10-20
|
|
21
|
+
#### 发布范围:全量
|
|
22
|
+
#### 发布内容
|
|
23
|
+
* 迭代:增加测试群机器人通知
|
|
24
|
+
* 迭代:增加lightning-app自动部署
|
|
25
|
+
|
|
1
26
|
# ReleaseV0.4.8
|
|
2
27
|
#### 发布日期:2021-10-19
|
|
3
28
|
#### 发布范围:全量
|
package/package.json
CHANGED
package/src/publish.js
CHANGED
|
@@ -158,9 +158,11 @@ class Publish {
|
|
|
158
158
|
try {
|
|
159
159
|
exec('npm run build');
|
|
160
160
|
} catch (error) {
|
|
161
|
-
console.log("error", error.toString("utf8").trim());
|
|
162
|
-
console.log(
|
|
163
|
-
|
|
161
|
+
// console.log("error", error.toString("utf8").trim());
|
|
162
|
+
console.log();
|
|
163
|
+
console.log(chalk.green('未找到bulid命令,已使用备用命令打包:npx vue-cli-service build'));
|
|
164
|
+
console.log();
|
|
165
|
+
exec('npx vue-cli-service build');
|
|
164
166
|
}
|
|
165
167
|
|
|
166
168
|
console.log(chalk.green('编译成功!'));
|
|
@@ -264,8 +266,8 @@ class Publish {
|
|
|
264
266
|
* 通知飞书群
|
|
265
267
|
*/
|
|
266
268
|
async notifyFeishu(packageName, type, version) {
|
|
267
|
-
let
|
|
268
|
-
if (
|
|
269
|
+
let triggers = triggerConfig["feishu-" + packageName + "-" + type]
|
|
270
|
+
if (triggers && triggers.length > 0) {
|
|
269
271
|
let body = {
|
|
270
272
|
"msg_type": "interactive",
|
|
271
273
|
"card": {
|
|
@@ -297,7 +299,9 @@ class Publish {
|
|
|
297
299
|
}
|
|
298
300
|
}
|
|
299
301
|
}
|
|
300
|
-
await
|
|
302
|
+
await triggers.map((trigger) => {
|
|
303
|
+
postParams(trigger, body);
|
|
304
|
+
})
|
|
301
305
|
}
|
|
302
306
|
}
|
|
303
307
|
}
|
package/src/triggerConfig.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"CloudCC-Dev": "http://cloudcc:a83289c3830900a27bb2f1a0046fb309@test.publish.cloudcc.com/view/test%20micro%20service/job/ltndev.cloudcc.com/build?token=cloudcc-ltndev",
|
|
3
|
-
"CloudCC-Beta": "http://cloudcc:a83289c3830900a27bb2f1a0046fb309@test.publish.cloudcc.com/view/test%20micro%20service/job/
|
|
4
|
-
"CloudCC-Release": "http://cloudcc:a83289c3830900a27bb2f1a0046fb309@test.publish.cloudcc.com/view/test%20micro%20service/job/
|
|
3
|
+
"CloudCC-Beta": "http://cloudcc:a83289c3830900a27bb2f1a0046fb309@test.publish.cloudcc.com/view/test%20micro%20service/job/ltnuat.cloudcc.com/build?token=cloudcc-ltnuat",
|
|
4
|
+
"CloudCC-Release": "http://cloudcc:a83289c3830900a27bb2f1a0046fb309@test.publish.cloudcc.com/view/test%20micro%20service/job/ltntestproduction.cloudcc.com/build?token=cloudcc-release",
|
|
5
5
|
"cloudcc-ui-Release": "http://cloudcc:a83289c3830900a27bb2f1a0046fb309@test.publish.cloudcc.com/view/test%20micro%20service/job/ccui.cloudcc.com(CCWEB%E7%BB%84%E4%BB%B6%E5%BA%93)/build?token=cloudcc-ui",
|
|
6
|
+
"lightning-app-Dev": "http://cloudcc:a83289c3830900a27bb2f1a0046fb309@test.publish.cloudcc.com/view/test%20micro%20service/job/ltnappdev.cloudcc.com/build?token=cloudcc-ltnappdev",
|
|
6
7
|
|
|
8
|
+
"feishu-CloudCC-Dev": [
|
|
9
|
+
"https://open.feishu.cn/open-apis/bot/v2/hook/c77c7f00-78a3-4603-824a-2fa4af70c3c3",
|
|
10
|
+
"https://open.feishu.cn/open-apis/bot/v2/hook/68bfe7c8-97d6-4d56-bea5-60a45d5ac472"
|
|
11
|
+
],
|
|
7
12
|
|
|
8
|
-
"feishu-
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
"feishu-cloudcc-ui-Release": [
|
|
14
|
+
"https://open.feishu.cn/open-apis/bot/v2/hook/c77c7f00-78a3-4603-824a-2fa4af70c3c3",
|
|
15
|
+
"https://open.feishu.cn/open-apis/bot/v2/hook/68bfe7c8-97d6-4d56-bea5-60a45d5ac472"
|
|
16
|
+
],
|
|
11
17
|
|
|
12
18
|
"doc-CloudCC-Dev": "http://gitlab.cloudcc.com/cloudcc-web-app/lightning-web/blob/cloudcc13/README.md",
|
|
13
19
|
"doc-CloudCC-Beta": "http://gitlab.cloudcc.com/cloudcc-web-app/lightning-web/blob/cloudcc13/README.md",
|