Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
holmes
Commits
b74a9754
Commit
b74a9754
authored
Feb 23, 2022
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改冒烟测试通知消息
parent
a70c1476
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
27 deletions
+21
-27
ReconciliationTask.java
src/main/java/cn/qg/holmes/task/ReconciliationTask.java
+0
-12
DingdingUtils.java
src/main/java/cn/qg/holmes/utils/DingdingUtils.java
+21
-15
No files found.
src/main/java/cn/qg/holmes/task/ReconciliationTask.java
View file @
b74a9754
...
...
@@ -434,16 +434,4 @@ public class ReconciliationTask {
DingdingUtils
.
sendToDingding
(
mkMsg
,
reconciliationDingUrl
);
}
}
/**
* 测试用,仅执行一次
* @throws AlipayApiException
* @throws IOException
*/
@Scheduled
(
cron
=
"0 30 15 23 2 ?"
)
public
void
aliPayDailyReconciliationTest
()
throws
AlipayApiException
,
IOException
{
String
billDate
=
DateUtils
.
convertDate
(
DateUtils
.
getBeforeDay
(
new
Date
(),
1
),
"yyyy-MM-dd"
);
List
<
AliPayBillData
>
aliPayBillDataList
=
aliPayBillService
.
parseAliPayBillFile
(
aliPayBillService
.
downloadBillFile
(
billDate
));
}
}
src/main/java/cn/qg/holmes/utils/DingdingUtils.java
View file @
b74a9754
...
...
@@ -223,6 +223,10 @@ public class DingdingUtils {
* @return
*/
public
static
String
buildSmokingResultMarkdownMsg
(
Iterable
<
Issue
>
issues
,
boolean
result
,
String
risk
)
{
List
<
Issue
>
issueList
=
new
ArrayList
<>();
for
(
Issue
issue:
issues
)
{
issueList
.
add
(
issue
);
}
String
title
=
""
;
String
content
=
""
;
DateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
...
...
@@ -235,9 +239,10 @@ public class DingdingUtils {
title
=
"冒烟测试未通过!"
;
content
+=
"冒烟测试结果:❌\n\n亲爱的小伙伴们,经过冒烟测试,您的项目无法正式进入测试阶段。因为有严重问题阻塞流程,请尽快修复后再次提测。由此耽误的时间算做您开发改bug的时间喔,测试时间会顺延到冒烟测试通过后的时间!\n\n"
;
}
if
(
issueList
.
size
()
>
0
)
{
content
+=
"冒烟测试BUG列表:\n\n"
;
int
count
=
0
;
for
(
Issue
issue:
issues
)
{
for
(
Issue
issue:
issueList
)
{
count
=
count
+
1
;
String
issueUrl
=
"http://jira2.quantgroup.cn/browse/"
+
issue
.
getKey
();
content
=
content
+
count
+
"、["
+
issue
.
getSummary
().
replace
(
"\""
,
""
)
+
"]("
+
issueUrl
+
")\n"
;
...
...
@@ -251,8 +256,9 @@ public class DingdingUtils {
}
content
=
content
+
"- 经办人:"
+
assignee
+
"\n\n"
;
}
}
if
(
risk
!=
null
)
{
content
+=
"
风险:
"
+
risk
;
content
+=
"
**风险点:**
"
+
risk
;
}
return
buildMarkdownMsg
(
title
,
content
,
true
);
}
...
...
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