Commit 2027d8c1 authored by 智勇's avatar 智勇

up

parent 1d71b0f2
......@@ -97,7 +97,7 @@ const webhooks = async function (ctx) {
const gitUser = req.user_username || req.user_email.split('@')[0]
const commitMes = req.commits[req.commits.length - 1].message
let projects = await ProConfig.findByQuery({ is_active: true, deploy_to_testenv: true, type: 'java' }, { project_name: 1 })
let projects = await ProConfig.findByQuery({ is_active: true, sonar: true, type: 'java' }, { project_name: 1 })
projects = projects.map(i => i.project_name)
if (projects.includes(projectName)) {
logger.info('webhooks 触发 sonar jenkins build', projectName, branchName, req.checkout_sha)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment