File tree Expand file tree Collapse file tree 6 files changed +1
-56
lines changed Expand file tree Collapse file tree 6 files changed +1
-56
lines changed Original file line number Diff line number Diff line change 23
23
24
24
- label : " :java: Java unit tests"
25
25
key : " java-unit-tests"
26
- env :
27
- # https://github.com/elastic/logstash/pull/15486 for background
28
- ENABLE_SONARQUBE : " false"
29
26
command : |
30
27
set -euo pipefail
31
28
Original file line number Diff line number Diff line change 47
47
retry :
48
48
automatic :
49
49
- limit : 3
50
- env :
51
- ENABLE_SONARQUBE : true
52
50
command : |
53
51
set -euo pipefail
54
52
source .buildkite/scripts/common/container-agent.sh
@@ -58,27 +56,6 @@ steps:
58
56
- " **/jacocoTestReport.xml"
59
57
- " **/build/classes/**/*.*"
60
58
61
- - label : " :sonarqube: Continuous Code Inspection"
62
- if : |
63
- build.pull_request.id != null ||
64
- build.branch == "main" ||
65
- build.branch =~ /^[0-9]+\.[0-9]+\$/
66
- env :
67
- VAULT_SONAR_TOKEN_PATH : " kv/ci-shared/platform-ingest/elastic/logstash/sonar-analyze-token"
68
- agents :
69
- image : " docker.elastic.co/cloud-ci/sonarqube/buildkite-scanner:latest"
70
- command :
71
- - " buildkite-agent artifact download --step ruby-unit-tests coverage/coverage.json ."
72
- - " buildkite-agent artifact download --step java-unit-tests **/jacocoTestReport.xml ."
73
- - " buildkite-agent artifact download --step java-unit-tests **/build/classes/**/*.* ."
74
- - " /scan-source-code.sh"
75
- depends_on :
76
- - " ruby-unit-tests"
77
- - " java-unit-tests"
78
- retry :
79
- manual :
80
- allowed : true
81
-
82
59
- label : " :lab_coat: Integration Tests / part 1-of-6"
83
60
key : " integration-tests-part-1-of-6"
84
61
agents :
Original file line number Diff line number Diff line change @@ -229,7 +229,6 @@ def java_unit_test(self) -> JobRetValues:
229
229
step_name_human = "Java Unit Test"
230
230
step_key = f"{ self .group_key } -java-unit-test"
231
231
test_command = '''
232
- export ENABLE_SONARQUBE="false"
233
232
ci/unit_tests.sh java
234
233
'''
235
234
Original file line number Diff line number Diff line change @@ -10,24 +10,16 @@ export GRADLE_OPTS="-Xmx4g -Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false
10
10
export SPEC_OPTS=" --order rand --format documentation"
11
11
export CI=true
12
12
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" }
15
13
16
14
if [ -n " $BUILD_JAVA_HOME " ]; then
17
15
GRADLE_OPTS=" $GRADLE_OPTS -Dorg.gradle.java.home=$BUILD_JAVA_HOME "
18
16
fi
19
17
20
18
SELECTED_TEST_SUITE=$1
21
19
22
- SONAR_ARGS=()
23
- if [[ $( echo $ENABLE_SONARQUBE | tr ' [:lower:]' ' [:upper:]' ) == " TRUE" ]]; then
24
- SONAR_ARGS=(" jacocoTestReport" )
25
- export COVERAGE=true
26
- fi
27
-
28
20
if [[ $SELECTED_TEST_SUITE == $" java" ]]; then
29
21
echo " Running Java Tests"
30
- ./gradlew javaTests " ${SONAR_ARGS[@]} " --console=plain --warning-mode all
22
+ ./gradlew javaTests --console=plain --warning-mode all
31
23
elif [[ $SELECTED_TEST_SUITE == $" ruby" ]]; then
32
24
echo " Running Ruby unit tests"
33
25
./gradlew rubyTests --console=plain --warning-mode all
Original file line number Diff line number Diff line change @@ -29,22 +29,14 @@ buildscript {
29
29
30
30
plugins {
31
31
id " jacoco"
32
- id " org.sonarqube" version " 4.3.0.3225"
33
32
}
34
33
35
34
apply plugin : ' jacoco'
36
- apply plugin : " org.sonarqube"
37
35
38
36
repositories {
39
37
mavenCentral()
40
38
}
41
39
42
- sonarqube {
43
- properties {
44
- property ' sonar.coverage.jacoco.xmlReportPaths' , " ${ buildDir} /reports/jacoco/test/jacocoTestReport.xml"
45
- }
46
- }
47
-
48
40
jacoco {
49
41
toolVersion = " 0.8.9"
50
42
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments