Skip to content

Commit cbef078

Browse files
authored
ci: remove sonarqube (#18273)
this service will be decommissioned shortly
1 parent 819474f commit cbef078

File tree

6 files changed

+1
-58
lines changed

6 files changed

+1
-58
lines changed

.buildkite/aarch64_pipeline.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ steps:
2323

2424
- label: ":java: Java unit tests"
2525
key: "java-unit-tests"
26-
env:
27-
# https://github.com/elastic/logstash/pull/15486 for background
28-
ENABLE_SONARQUBE: "false"
2926
command: |
3027
set -euo pipefail
3128

.buildkite/pull_request_pipeline.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ steps:
8888
retry:
8989
automatic:
9090
- limit: 3
91-
env:
92-
ENABLE_SONARQUBE: true
9391
command: |
9492
set -euo pipefail
9593
source .buildkite/scripts/common/container-agent.sh
@@ -110,8 +108,6 @@ steps:
110108
retry:
111109
automatic:
112110
- limit: 3
113-
env:
114-
ENABLE_SONARQUBE: true
115111
command: |
116112
set -euo pipefail
117113
@@ -122,27 +118,6 @@ steps:
122118
- "**/jacocoTestReport.xml"
123119
- "**/build/classes/**/*.*"
124120

125-
- label: ":sonarqube: Continuous Code Inspection"
126-
if: |
127-
build.pull_request.id != null ||
128-
build.branch == "main" ||
129-
build.branch =~ /^[0-9]+\.[0-9]+\$/
130-
env:
131-
VAULT_SONAR_TOKEN_PATH: "kv/ci-shared/platform-ingest/elastic/logstash/sonar-analyze-token"
132-
agents:
133-
image: "docker.elastic.co/cloud-ci/sonarqube/buildkite-scanner:latest"
134-
command:
135-
- "buildkite-agent artifact download --step ruby-unit-tests coverage/coverage.json ."
136-
- "buildkite-agent artifact download --step java-unit-tests **/jacocoTestReport.xml ."
137-
- "buildkite-agent artifact download --step java-unit-tests **/build/classes/**/*.* ."
138-
- "/scan-source-code.sh"
139-
depends_on:
140-
- "ruby-unit-tests"
141-
- "java-unit-tests"
142-
retry:
143-
manual:
144-
allowed: true
145-
146121
- label: "Observability SRE container smoke test"
147122
key: "observability-sre-container-smoke-test"
148123
agents:

.buildkite/scripts/jdk-matrix-tests/generate-steps.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ def java_unit_test(self) -> JobRetValues:
229229
step_name_human = "Java Unit Test"
230230
step_key = f"{self.group_key}-java-unit-test"
231231
test_command = '''
232-
export ENABLE_SONARQUBE="false"
233232
ci/unit_tests.sh java
234233
'''
235234

ci/unit_tests.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,16 @@ export GRADLE_OPTS="-Xmx4g -Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false
1010
export SPEC_OPTS="--order rand --format documentation"
1111
export CI=true
1212
export TEST_DEBUG=true
13-
# don't rely on bash booleans for truth checks, since some CI platforms don't have a way to specify env vars as boolean
14-
export ENABLE_SONARQUBE=${ENABLE_SONARQUBE:-"true"}
1513

1614
if [ -n "$BUILD_JAVA_HOME" ]; then
1715
GRADLE_OPTS="$GRADLE_OPTS -Dorg.gradle.java.home=$BUILD_JAVA_HOME"
1816
fi
1917

2018
SELECTED_TEST_SUITE=$1
2119

22-
SONAR_ARGS=()
23-
if [[ $(echo $ENABLE_SONARQUBE | tr '[:lower:]' '[:upper:]') == "TRUE" ]]; then
24-
SONAR_ARGS=("jacocoTestReport")
25-
export COVERAGE=true
26-
fi
27-
2820
if [[ $SELECTED_TEST_SUITE == $"java" ]]; then
2921
echo "Running Java Tests"
30-
./gradlew javaTests "${SONAR_ARGS[@]}" --console=plain --warning-mode all
22+
./gradlew javaTests --console=plain --warning-mode all
3123
elif [[ $SELECTED_TEST_SUITE == $"ruby" ]]; then
3224
echo "Running Ruby unit tests"
3325
./gradlew rubyTests --console=plain --warning-mode all

logstash-core/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,14 @@ buildscript {
2323

2424
plugins {
2525
id "jacoco"
26-
id "org.sonarqube" version "4.3.0.3225"
2726
}
2827

2928
apply plugin: 'jacoco'
30-
apply plugin: "org.sonarqube"
3129

3230
repositories {
3331
mavenCentral()
3432
}
3533

36-
sonarqube {
37-
properties {
38-
property 'sonar.coverage.jacoco.xmlReportPaths', "${buildDir}/reports/jacoco/test/jacocoTestReport.xml"
39-
}
40-
}
41-
4234
jacoco {
4335
toolVersion = "0.8.9"
4436
}

sonar-project.properties

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)