def bomTasks = "cyclonedxBom"
def ghBranch = System.getenv()["GITHUB_BRANCH"]
def isMainBranch = ghBranch in ['master'] || ghBranch ==~ 'branch-[\\d.]+'
-def isNightlyBuild = ghBranch == "branch-nightly-build"
-boolean enableBom = System.getenv('CI') == "true" && (isMainBranch || isNightlyBuild) ||
+
+boolean enableBom = System.getenv('CI') == "true" && (isMainBranch) ||
System.getProperty("bom") != null ||
gradle.startParameter.taskNames.findAll({ it.matches(".*:($bomTasks)") })
release = project.hasProperty('release') && project.getProperty('release')
official = project.hasProperty('official') && project.getProperty('official')
testMonitoringEnabled = project.hasProperty('withTestMonitoring')
+ utMonitoringEnabled = project.hasProperty('withUtMonitoring')
}
ext.enableBom = enableBom
}
}
- if (isNightlyBuild) {
+ if (ext.utMonitoringEnabled) {
tasks.withType(Test) {
doFirst {
ext {
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')
systemProperty 'webdriver.chrome.driver', System.getProperty('webdriver.chrome.driver')