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
ca01b49f
Commit
ca01b49f
authored
Dec 09, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日志
parent
62ccd676
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sonar.js
app/controller/sonar.js
+3
-2
No files found.
app/controller/sonar.js
View file @
ca01b49f
...
...
@@ -87,11 +87,13 @@ const callback = async (ctx) => {
url
:
`
${
data
.
content
.
ceTaskUrl
}
`
,
method
:
'
GET
'
,
})
logger
.
info
(
data
.
projectName
,
data
.
branchName
,
data
.
branchHash
,
'
的分析任务执行信息:
'
,
ceTaskResult
.
task
.
status
,
ceTaskResult
)
if
(
ceTaskResult
.
task
.
status
===
'
SUCCESS
'
)
{
executionTimeMs
=
ceTaskResult
.
task
.
executionTimeMs
flag
=
false
}
await
sleep
(
1
*
1000
)
await
sleep
(
2
*
1000
)
}
const
res
=
await
awaitRequest
({
url
:
`
${
config
.
sonarHost
}
/api/project_branches/list?project=
${
data
.
projectName
}
`
,
...
...
@@ -193,7 +195,6 @@ const fetchQuality = async (ctx) => {
return
prev
},
{})
const
res
=
[]
for
(
const
i
in
data
)
{
if
(
Object
.
prototype
.
hasOwnProperty
.
call
(
data
,
i
))
{
...
...
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