pull request添加jenkins执行过程结果

This commit is contained in:
huang 2018-06-10 20:31:42 +08:00
parent d82d6817f9
commit c080cf6c94
3 changed files with 9 additions and 0 deletions

View File

@ -14,8 +14,11 @@
<div class="c_grey clear mt5">
<p class="fl">由 <%= link_to_user_login(request.author.try(:username), "linkBlue2") %> 创建于<%= time_tag(request.created_at) %>前</p>
<span class="fl ml10"><%= time_tag(request.updated_at) %>前更新</span>
<%# 时间紧,待优化 %>
<% qa = QualityAnalysis.where(:pull_request_id => request.id).first %>
<% if qa.present? %>
<p class="fr"><%= link_to "执行过程", pr_console_project_quality_analysis_path(:job_name => qa.sonar_name), :class => "linkBlue2 ml10 mr10", :target => "_blank" %></p>
<p class="fr"><a class="linkBlue2 ml10 mr10" href="http://sonar.trustie.net/dashboard/index/<%= qa.sonar_name %>" target="_blank">质量检测结果</a></p>
<% end %>
</div>

View File

@ -0,0 +1,5 @@
<div class="clear new_roadmap_listbox">
<div class="clear">
<%= @output.html_safe %>
</div>
</div>

View File

@ -1028,6 +1028,7 @@ RedmineApp::Application.routes.draw do
resources :quality_analysis, :only => [:index, :create, :edit, :update, :delete] do
collection do
get 'pr_console'
end
member do
match 'update_jenkins_job'