Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-api
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
1
Merge Requests
1
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
qa-api
Commits
c1f49288
Commit
c1f49288
authored
Dec 02, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改邮箱方式
parent
e2b001cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sonar.js
app/controller/sonar.js
+3
-3
No files found.
app/controller/sonar.js
View file @
c1f49288
...
@@ -20,7 +20,7 @@ const sendFailMail = async (data, item, executionTimeMs) => {
...
@@ -20,7 +20,7 @@ const sendFailMail = async (data, item, executionTimeMs) => {
+
`分析时间 :
${
executionTime
}
s<br/>`
+
`分析时间 :
${
executionTime
}
s<br/>`
+
`扫描日期 :
${
item
.
analysisDate
}
<br/>`
+
`扫描日期 :
${
item
.
analysisDate
}
<br/>`
+
`查看详情 :
${
config
.
sonarHost
}
/project/activity?id=
${
data
.
project
}
&&selected_date=
${
item
.
analysisDate
}
`
+
`查看详情 :
${
config
.
sonarHost
}
/project/activity?id=
${
data
.
project
}
&&selected_date=
${
item
.
analysisDate
}
`
sendMail
(
`
${
data
.
gitUser
}
@quantgroup.cn`
,
`
${
data
.
project
}
${
title
}
`
,
text
)
sendMail
(
data
.
gitUserMail
,
`
${
data
.
project
}
${
title
}
`
,
text
)
}
}
const
sendExceptionMail
=
async
(
data
)
=>
{
const
sendExceptionMail
=
async
(
data
)
=>
{
...
@@ -29,7 +29,7 @@ const sendExceptionMail = async (data) => {
...
@@ -29,7 +29,7 @@ const sendExceptionMail = async (data) => {
+
`项目名称 :
${
data
.
project
}
<br/>`
+
`项目名称 :
${
data
.
project
}
<br/>`
+
`分支名称 :
${
data
.
branch
}
<br/>`
+
`分支名称 :
${
data
.
branch
}
<br/>`
+
`查看详情 :
${
data
.
absoluteUrl
}
console`
+
`查看详情 :
${
data
.
absoluteUrl
}
console`
sendMail
(
`
${
data
.
gitUser
}
@quantgroup.cn`
,
`
${
data
.
project
}
${
title
}
`
,
text
)
sendMail
(
data
.
gitUserMail
,
`
${
data
.
project
}
${
title
}
`
,
text
)
}
}
const
sendExistMail
=
async
(
data
)
=>
{
const
sendExistMail
=
async
(
data
)
=>
{
...
@@ -40,7 +40,7 @@ const sendExistMail = async (data) => {
...
@@ -40,7 +40,7 @@ const sendExistMail = async (data) => {
+
`GITHASH :
${
data
.
branchHash
}
<br/>`
+
`GITHASH :
${
data
.
branchHash
}
<br/>`
+
`扫描分析日期 :
${
data
.
analysisDate
}
<br/>`
+
`扫描分析日期 :
${
data
.
analysisDate
}
<br/>`
+
`查看详情 :
${
config
.
sonarHost
}
/project/activity?id=
${
data
.
projectName
}
&&selected_date=
${
data
.
analysisDate
}
`
+
`查看详情 :
${
config
.
sonarHost
}
/project/activity?id=
${
data
.
projectName
}
&&selected_date=
${
data
.
analysisDate
}
`
sendMail
(
`
${
data
.
gitUser
}
@quantgroup.cn`
,
`
${
data
.
project
}
${
title
}
`
,
text
)
sendMail
(
data
.
gitUserMail
,
`
${
data
.
project
}
${
title
}
`
,
text
)
}
}
const
callback
=
async
(
ctx
)
=>
{
const
callback
=
async
(
ctx
)
=>
{
...
...
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