Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Removing branch name from sonar publishers (#142)
Browse files Browse the repository at this point in the history
* Removing branch name from sonar publishers

Co-authored-by: Alec Sherwood <[email protected]>
  • Loading branch information
alecsherwood and Alec Sherwood authored Jun 11, 2020
1 parent dc7162c commit af67d3f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion lib/jenkins_pipeline_builder/extensions/publishers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@
xml do |params|
send('hudson.plugins.sonar.SonarPublisher') do
jdk params[:jdk] || '(Inherit From Job)'
branch params[:branch] || ''
language
mavenOpts
jobAdditionalProperties params[:additional_properties] || ''
Expand Down
2 changes: 1 addition & 1 deletion lib/jenkins_pipeline_builder/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
#

module JenkinsPipelineBuilder
VERSION = '1.9.1'.freeze
VERSION = '1.10.0'.freeze
end
10 changes: 0 additions & 10 deletions spec/lib/jenkins_pipeline_builder/extensions/publishers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,6 @@
expect(additional_properties_value.first.content).to match ''
end

it 'populates branch' do
params = { publishers: { sonar_result: { branch: 'test' } } }

JenkinsPipelineBuilder.registry.traverse_registry_path('job', params, @n_xml)

sonar_nodes = @n_xml.root.children.first.children
branch = sonar_nodes.select { |node| node.name == 'branch' }
expect(branch.first.content).to match 'test'
end

it 'populates maven installation name' do
params = { publishers: { sonar_result: { maven_installation_name: 'test' } } }

Expand Down

0 comments on commit af67d3f

Please sign in to comment.