Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
马博
test-platform
Commits
dbdd9309
Commit
dbdd9309
authored
Dec 06, 2018
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
89cabab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
DingdingResult.java
src/test/java/base/DingdingResult.java
+13
-6
No files found.
src/test/java/base/DingdingResult.java
View file @
dbdd9309
...
...
@@ -2,6 +2,7 @@ package base;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.gitlab.api.models.GitlabProjectMerges
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
org.springframework.core.env.Environment
;
...
...
@@ -55,6 +56,11 @@ public class DingdingResult {
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"jobName"
,
getJob
());
changes
=
Postman
.
sendFindTestApp
(
params
);
GitlabProjectMerges
gitlabProjectMerges
=
GitlabUtils
.
getMessage
(
"credits-group"
,
changes
);
changes
=
changes
+
" 提交者:"
+
gitlabProjectMerges
.
getAuthor
().
getName
()+
" 描述:"
+
gitlabProjectMerges
.
getDescription
();
/*从jenkins上获取项目变更
Map<String,String> resentChanges=BeTested.getChangesWithin(30,changeMap);
System.out.println(resentChanges);
...
...
@@ -132,12 +138,13 @@ public class DingdingResult {
// result.put("changes",this.changes+"<br>");
result
.
put
(
"changes"
,
this
.
changes
);
if
(
this
.
failCount
>
0
||
exceptionServices
.
size
()>
0
||
exceptionMessage
.
size
()>
0
){
try
{
String
name
=
this
.
changes
.
split
(
"—"
)[
1
].
split
(
"/"
)[
0
];
names
.
add
(
name
);
}
catch
(
Exception
e
){
System
.
out
.
println
(
e
);
}
// try{
// String name = this.changes.split("—")[1].split("/")[0];
// names.add(name);
// }catch(Exception e){
// System.out.println(e);
// }
}
else
{
names
.
clear
();
...
...
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