Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OPENTECH
/
yoho-node-ci
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
2
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
沈志敏
8 years ago
Commit
237cab194a372934dfad4c4969de847f740b9da1
1 parent
d1335bc4
master
...
feature/docker
feature/link
feature/qiniu
feature/risk
feature/ssr
feature/staticPreload
feature/ufo
hotfix/11
hotfix/addxianyu
hotfix/addxianyuconfig
hotfix/riskManage
20170724
20170628
20170606
fix bug 邮件发送两次
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
apps/ci/checkcode.js
apps/web/actions/checkcode.js
apps/ci/checkcode.js
View file @
237cab1
...
...
@@ -29,6 +29,7 @@ class Check {
from
:
'automan@yoho.cn'
,
to
:
'webtech@yoho.cn'
,
subject
:
`
$
{
projectname
}
:
$
{
branch
}
代码检查一览`
subject
:
`
$
{
projectname
}
:
$
{
branch
}
代码检查一览
`
+
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
};
this
.
id
=
`
$
{
projectname
}
_$
{
branch
}
_$
{
this
.
buildTime
}
`
;
...
...
apps/web/actions/checkcode.js
View file @
237cab1
...
...
@@ -99,11 +99,16 @@ module.exports = {
rule
.
hour
=
23
;
rule
.
minute
=
59
;
schedule
.
scheduleJob
(
rule
,
function
()
{
let
running
=
{};
projects
.
forEach
(
async
(
p
)
=>
{
if
(
p
.
name
!==
'yohobuywap-node'
)
{
// todo 暂时只检查wap站
return
;
}
new
Check
(
p
.
name
,
p
.
gitlab
,
'release/5.6'
).
check
();
if
(
!
running
[
p
.
name
])
{
running
[
p
.
name
]
=
true
;
new
Check
(
p
.
name
,
p
.
gitlab
,
'release/5.6'
).
check
();
}
});
});
},
...
...
Please
register
or
login
to post a comment