diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2023-07-06 09:26:11 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-07-11 20:03:24 +0000 |
commit | d3e2410ab73229f519e3740f00479d4383bca7ea (patch) | |
tree | d070f83cc006c0be90279aaab74d4bd400415464 /buildSrc | |
parent | c171b51e38f5270e866f87e28bc0382692e1ebaa (diff) | |
download | sonarqube-d3e2410ab73229f519e3740f00479d4383bca7ea.tar.gz sonarqube-d3e2410ab73229f519e3740f00479d4383bca7ea.zip |
[NO JIRA] Move SCIM bbts to core-extension-scim
Diffstat (limited to 'buildSrc')
-rw-r--r-- | buildSrc/src/main/groovy/org.sonar.build/BlackBoxTest.groovy | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/buildSrc/src/main/groovy/org.sonar.build/BlackBoxTest.groovy b/buildSrc/src/main/groovy/org.sonar.build/BlackBoxTest.groovy new file mode 100644 index 00000000000..e80468a1dc5 --- /dev/null +++ b/buildSrc/src/main/groovy/org.sonar.build/BlackBoxTest.groovy @@ -0,0 +1,25 @@ +package org.sonar.build + +import org.gradle.api.tasks.testing.Test + +class BlackBoxTest extends Test { + BlackBoxTest() { + def branch = System.getenv('GITHUB_BRANCH') + if (branch != null && Set.of("branch-nightly-build", "master").contains(branch)) { + jvmArgs("-javaagent:" + System.getenv('ASPECTJ_WEAVER_PATH')) + } + + systemProperty 'java.awt.headless', 'true' + systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl') + + if (!project.version.endsWith("-SNAPSHOT")) { + systemProperty 'sonar.runtimeVersion', project.version + } + + testLogging { + events "skipped", "failed" + showStandardStreams = true + exceptionFormat 'full' + } + } +} |