Skip to content

Commit

Permalink
Release 4.5.1 (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ committed Jul 17, 2024
1 parent 8f43d5b commit a65c46f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@

### Fixed

## [4.5.1] - 2024-07-17

### Added
- Added webhook proxy logic to skip requests with the ref id starting with "refs/notes/" ([#1288](https://github.com/opendevstack/ods-core/pull/1288))

### Changed
- Update SonarQube to 9.9.6 ([#1292](https://github.com/opendevstack/ods-core/pull/1292))

## [4.5.0] - 2024-06-06

### Added
Expand Down
2 changes: 1 addition & 1 deletion configuration-sample/ods-core.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ SONAR_EDITION=community
# See Dockerhub https://hub.docker.com/_/sonarqube/tags
# Officially supported is:
# - 9.9 (LTS release)
SONAR_VERSION=9.9.5
SONAR_VERSION=9.9.6

# SonarQube memory and CPU resources
SONARQUBE_CPU_REQUEST=200m
Expand Down
10 changes: 10 additions & 0 deletions jenkins/webhook-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,16 @@ func (s *Server) HandleRoot() http.HandlerFunc {
return
}

// Skip requests with where the ref id is starting with "refs/notes/"
// Reference 1: https://community.atlassian.com/t5/Bitbucket-questions/disable-quot-git-notes-add-quot-behaviour-for-semantic-release/qaq-p/1837322
// Reference 2: https://github.com/semantic-release/semantic-release/discussions/2017#discussioncomment-995308
if len(req.Changes) > 0 && strings.Contains(req.Changes[0].Ref.DisplayID, "refs/notes/") {
log.Println(requestID, "Skipping request with refs/notes/ prefix in ref id")
// Return 200 OK to Bitbucket to avoid retries
http.Error(w, "OK", http.StatusOK)
return
}

if req.EventKey == "repo:refs_changed" {
repo = req.Repository.Slug
if component == "" {
Expand Down
2 changes: 1 addition & 1 deletion sonarqube/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 1.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "9.9.5"
appVersion: "9.9.6"
2 changes: 1 addition & 1 deletion sonarqube/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ODS_CORE_DIR=${SCRIPT_DIR%/*}
ODS_CONFIGURATION_DIR="${ODS_CORE_DIR}/../ods-configuration"

SONAR_VERSION=9.9.4
SONAR_VERSION=9.9.6
SONAR_EDITION="community"

function usage {
Expand Down

0 comments on commit a65c46f

Please sign in to comment.