This commit is contained in:
caishi 2019-10-10 16:58:36 +08:00
commit 840eb28434
2 changed files with 4 additions and 2 deletions

4
.gitignore vendored
View File

@ -15,7 +15,6 @@
/public/tmp/*
/tmp/*
/public/cache/*
.gitignore
/config/newrelic.yml
/public/images/avatars/*
/Gemfile
@ -40,3 +39,6 @@ public/javascripts/wechat/node_modules/
tmux*.log
config/wechat.yml
config/oneapm.yml
/vendor
README.rdoc

View File

@ -107,7 +107,7 @@ class PullRequestsController < ApplicationController
# 自动生成配置Jenkinsjob在merge事件的时候触发jenkins、sonar
# merge发送的时候还没有接收所以分析对象应该源项目
language = swith_language_type(@project.language)
exec_jenkins(source_branch, @project.gpid, git_url, job_name, language)
# exec_jenkins(source_branch, @project.gpid, git_url, job_name, language)
logger.info("33333333333333333333")
qa = QualityAnalysis.create(:project_id => @project.id, :author_login => User.current.login, :sonar_version => 1, :path => "./",
:branch => source_branch, :language => "java", :sonar_name => "#{job_name}")