Skip to content

Commit

Permalink
[Integration][SonarQube] - Add Sonar Quality Gate Status (#634)
Browse files Browse the repository at this point in the history
# Description

What - Added quality gate status to the SonarQube project blueprint
Why -
How -

## Type of change

Please leave one option from the following and delete the rest:

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] New Integration (non-breaking change which adds a new integration)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [x] Non-breaking change (fix of existing functionality that will not
change current behavior)
- [ ] Documentation (added/updated documentation)

## Screenshots

<img width="1198" alt="Screenshot 2024-05-16 at 8 22 43 PM"
src="https://github.com/port-labs/ocean/assets/15999660/290a35d9-7db4-4f71-ac58-3d1a3f5d0aea">

---------

Co-authored-by: omby8888 <[email protected]>
  • Loading branch information
PeyGis and omby8888 authored Jun 25, 2024
1 parent 89543e1 commit d5bc6e3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
14 changes: 14 additions & 0 deletions integrations/sonarqube/.port/resources/blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@
"icon": "Clock",
"title": "Last Analysis Date"
},
"qualityGateStatus": {
"title": "Quality Gate Status",
"type": "string",
"enum": [
"OK",
"WARN",
"ERROR"
],
"enumColors": {
"OK": "green",
"WARN": "yellow",
"ERROR": "red"
}
},
"numberOfBugs": {
"type": "number",
"title": "Number Of Bugs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resources:
properties:
organization: .organization
link: .__link
lastAnalysisStatus: .__branch.status.qualityGateStatus
qualityGateStatus: .__branch.status.qualityGateStatus
lastAnalysisDate: .__branch.analysisDate
numberOfBugs: .__measures[]? | select(.metric == "bugs") | .value
numberOfCodeSmells: .__measures[]? | select(.metric == "code_smells") | .value
Expand Down
7 changes: 7 additions & 0 deletions integrations/sonarqube/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- towncrier release notes start -->

# Port_Ocean 0.1.65 (2024-06-25)

### Improvements

- Added quality gate status to the project blueprint


# Port_Ocean 0.1.64 (2024-06-23)

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion integrations/sonarqube/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sonarqube"
version = "0.1.64"
version = "0.1.65"
description = "SonarQube projects and code quality analysis integration"
authors = ["Port Team <[email protected]>"]

Expand Down

0 comments on commit d5bc6e3

Please sign in to comment.