Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Add support for quality gates by adding custom type (create, remove) #68

Open
frodoslaw opened this issue Mar 3, 2016 · 0 comments
Open

Comments

@frodoslaw
Copy link

Add support for quality gates by adding custom puppet type and provider: qualitygates.

Type description

This type should manage quality gates (create, remove).

sonarqube::qualitygates { 'COI way':
  ensure     => 'present',
  default    => true,
  conditions => {
    'blocker_violations'  = {'error' => 10, 'warning' => 5, 'op' => 'GT'},
    'critical_violations' = {'error' => 5, 'warning' => 0, 'op' => 'GT'},
# [...]
  }
}

Provider description

There should be a default provider that will use SonarQube API https://nemo.sonarqube.org/api_documentation/api/qualitygates

Below are listed required API functions that should fulfil type contract:

  • POST api/qualitygates/create - Since 4.3
  • POST api/qualitygates/create_condition
  • POST api/qualitygates/delete_condition
  • POST api/qualitygates/destroy
  • GET api/qualitygates/search
  • GET api/qualitygates/list
  • POST api/qualitygates/select
  • POST api/qualitygates/set_as_default
  • POST api/qualitygates/unset_default
  • POST api/qualitygates/update_condition

This provider will support SonarQube ver. >= 5.2

@frodoslaw frodoslaw changed the title Add support for quality gates (create, remove) Add support for quality gates by adding custom type (create, remove) Mar 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant