Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 4.5.1 #1294

Merged
merged 3 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading