From 911fe555d482809552236f6183c4d45c6f96b968 Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Tue, 25 Aug 2026 22:01:41 +0000 Subject: [PATCH 01/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index 1fe8a3b7..9d6d8026 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -109,30 +109,22 @@ pipeline: puts JSON.dump(total) ' > .resultset.sonarqube.json - step: - type: Run - name: SonarQube Scan - identifier: SonarQube_Scan - when: - stageStatus: Success - condition: <+matrix.rubyVersion> == "3.2.2" + type: Sonarqube + name: Sonarqube_1 + identifier: Sonarqube_1 spec: - shell: Sh - command: |- - export SONAR_SCANNER_VERSION=5.0.1.3006 - curl -sSLo sonar-scanner.zip \ - "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}-linux.zip" - unzip -q sonar-scanner.zip - export PATH="$PWD/sonar-scanner-${SONAR_SCANNER_VERSION}-linux/bin:$PATH" - apt-get install -y openjdk-17-jdk -qq - sonar-scanner \ - -Dsonar.projectKey=ruby-client \ - -Dsonar.sources=lib \ - -Dsonar.tests=spec \ - -Dsonar.host.url=https://sonar.harness.io \ - -Dsonar.token=<+secrets.getValue("sonarqube-token")> \ - -Dsonar.ruby.coverage.reportPaths=coverage/.resultset.sonarqube.json \ - -Dsonar.coverage.exclusions="spec/**,**/vendor/**" \ - -Dsonar.exclusions="**/vendor/**,**/.git/**" + mode: orchestration + config: default + target: + type: repository + detection: auto + advanced: + log: + level: info + auth: + access_token: <+secrets.getValue("sonarqube-token")> + domain: https://sonar.harness.io + ssl: true - step: type: Run name: Post Quality Gate From 6c98733f298e7266d7ee6ed7faeb5232fa1e632a Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Wed, 26 Aug 2026 03:05:36 +0000 Subject: [PATCH 02/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index 9d6d8026..6ca08af5 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -125,6 +125,8 @@ pipeline: access_token: <+secrets.getValue("sonarqube-token")> domain: https://sonar.harness.io ssl: true + tool: + project_key: ruby-client - step: type: Run name: Post Quality Gate From 105761af3562f7e7474be6276441e25240911dd0 Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Wed, 26 Aug 2026 18:38:25 +0000 Subject: [PATCH 03/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index 6ca08af5..882b6ef4 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -120,7 +120,7 @@ pipeline: detection: auto advanced: log: - level: info + level: debug auth: access_token: <+secrets.getValue("sonarqube-token")> domain: https://sonar.harness.io From 526ec2ac3b14b491ea126b561bcea90091c4a8e5 Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Wed, 26 Aug 2026 19:03:07 +0000 Subject: [PATCH 04/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index 882b6ef4..53439c05 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -121,6 +121,8 @@ pipeline: advanced: log: level: debug + settings: + sonar.coverageReportPaths: /harness/coverage/coverage.json auth: access_token: <+secrets.getValue("sonarqube-token")> domain: https://sonar.harness.io From d83dd8b6d7b12b5bf6b79f0fd5b5e90b7bda95a3 Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Wed, 26 Aug 2026 19:18:44 +0000 Subject: [PATCH 05/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index 53439c05..e52c554b 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -121,8 +121,8 @@ pipeline: advanced: log: level: debug - settings: - sonar.coverageReportPaths: /harness/coverage/coverage.json + args: + cli: "-Dsonar.ruby.coverage.reportPaths=/harness/coverage/coverage.json" auth: access_token: <+secrets.getValue("sonarqube-token")> domain: https://sonar.harness.io From 5fbdd98825bf861e7e37ae2ec5227e6ae0e6766d Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Wed, 26 Aug 2026 20:49:27 +0000 Subject: [PATCH 06/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index e52c554b..dd6f3499 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -122,7 +122,7 @@ pipeline: log: level: debug args: - cli: "-Dsonar.ruby.coverage.reportPaths=/harness/coverage/coverage.json" + cli: "-Dsonar.ruby.coverage.reportPaths=/harness/coverage/coverage.json -Dsonar.coverageReportPaths=/harness/coverage/coverage.json" auth: access_token: <+secrets.getValue("sonarqube-token")> domain: https://sonar.harness.io From 90a9ab57cc7b82e901e94e5ae3a6b17d65f29c96 Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Thu, 27 Aug 2026 02:55:18 +0000 Subject: [PATCH 07/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index dd6f3499..45e71ce5 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -109,26 +109,28 @@ pipeline: puts JSON.dump(total) ' > .resultset.sonarqube.json - step: - type: Sonarqube - name: Sonarqube_1 - identifier: Sonarqube_1 + type: Run + name: Sonarqube_scan + identifier: Sonarqube_scan spec: - mode: orchestration - config: default - target: - type: repository - detection: auto - advanced: - log: - level: debug - args: - cli: "-Dsonar.ruby.coverage.reportPaths=/harness/coverage/coverage.json -Dsonar.coverageReportPaths=/harness/coverage/coverage.json" - auth: - access_token: <+secrets.getValue("sonarqube-token")> - domain: https://sonar.harness.io - ssl: true - tool: - project_key: ruby-client + shell: Sh + command: |- + export SONAR_SCANNER_VERSION=5.0.1.3006 + curl -sSLo sonar-scanner.zip \ + "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}-linux.zip" + unzip -q sonar-scanner.zip + export PATH="$PWD/sonar-scanner-${SONAR_SCANNER_VERSION}-linux/bin:$PATH" + apt-get install -y openjdk-17-jdk -qq + sonar-scanner \ + -Dsonar.projectKey=ruby-client \ + -Dsonar.sources=lib \ + -Dsonar.tests=spec \ + -Dsonar.host.url=https://sonar.harness.io \ + -Dsonar.token=<+secrets.getValue("sonarqube-token")> \ + -Dsonar.ruby.coverage.reportPaths=/harness/coverage/coverage.json \ + -Dsonar.coverage.exclusions="spec/**,**/vendor/**" \ + -Dsonar.exclusions="**/vendor/**,**/.git/**" \ + -Dsonar.verbose=true - step: type: Run name: Post Quality Gate From 34ead19f6bc6748d59e9d8cf24ac4b54d6777548 Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Thu, 27 Aug 2026 03:10:04 +0000 Subject: [PATCH 08/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index 45e71ce5..23be1cc6 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -127,7 +127,7 @@ pipeline: -Dsonar.tests=spec \ -Dsonar.host.url=https://sonar.harness.io \ -Dsonar.token=<+secrets.getValue("sonarqube-token")> \ - -Dsonar.ruby.coverage.reportPaths=/harness/coverage/coverage.json \ + -Dsonar.ruby.coverage.reportPaths=coverage/.resultset.sonarqube.json \ -Dsonar.coverage.exclusions="spec/**,**/vendor/**" \ -Dsonar.exclusions="**/vendor/**,**/.git/**" \ -Dsonar.verbose=true From 7cbdaf25b366afe13e6a879d4fde18f11e54f37d Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Thu, 27 Aug 2026 03:37:12 +0000 Subject: [PATCH 09/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index 23be1cc6..d94e0b5f 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -102,7 +102,7 @@ pipeline: export PATH="$HOME/.local/bin:$PATH" eval "$(mise activate bash)" cd coverage - sed -i "s@${HARNESS_WORKSPACE}@/harness/workspace/@g" .resultset.json + #sed -i "s@${HARNESS_WORKSPACE}@/harness/workspace/@g" .resultset.json ruby -rjson -e ' sqube = JSON.load(File.read(".resultset.json"))["RSpec"]["coverage"].transform_values {|lines| lines["lines"]} total = { "RSpec" => { "coverage" => sqube, "timestamp" => Time.now.to_i }} From c5ed6561721fbd75cc3584c762063aec8a124526 Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Thu, 27 Aug 2026 20:03:01 +0000 Subject: [PATCH 10/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index d94e0b5f..4805cf58 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -127,7 +127,7 @@ pipeline: -Dsonar.tests=spec \ -Dsonar.host.url=https://sonar.harness.io \ -Dsonar.token=<+secrets.getValue("sonarqube-token")> \ - -Dsonar.ruby.coverage.reportPaths=coverage/.resultset.sonarqube.json \ + -Dsonar.ruby.coverage.reportPaths=/harness/coverage/.resultset.sonarqube.json \ -Dsonar.coverage.exclusions="spec/**,**/vendor/**" \ -Dsonar.exclusions="**/vendor/**,**/.git/**" \ -Dsonar.verbose=true From 3b661416cf81acb1eca0bdadba23cf94779ae38f Mon Sep 17 00:00:00 2001 From: Bilal Al-Shahwany Date: Thu, 27 Aug 2026 20:51:57 +0000 Subject: [PATCH 11/11] Update pipeline ruby-client-repo --- .harness/pipeline.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.harness/pipeline.yaml b/.harness/pipeline.yaml index 4805cf58..b4dc115b 100644 --- a/.harness/pipeline.yaml +++ b/.harness/pipeline.yaml @@ -102,7 +102,6 @@ pipeline: export PATH="$HOME/.local/bin:$PATH" eval "$(mise activate bash)" cd coverage - #sed -i "s@${HARNESS_WORKSPACE}@/harness/workspace/@g" .resultset.json ruby -rjson -e ' sqube = JSON.load(File.read(".resultset.json"))["RSpec"]["coverage"].transform_values {|lines| lines["lines"]} total = { "RSpec" => { "coverage" => sqube, "timestamp" => Time.now.to_i }}