Commit 2b64be61 authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Add all xwiki system properties as custom data in GE + tag some of them

* Fix NPE
parent 3cd81996
......@@ -38,21 +38,19 @@ buildScan.executeOnce('tag-profiles') { BuildScanApi buildScanApi ->
project.properties.find { it.key.startsWith('xwiki') }.each { buildScanApi.value(it.key, it.value) }
// Add specific tags to make it easy to recognize with wich environment a docker functional tests has been executed
def servletContainer = project.properties.'xwiki.test.ui.servletEngine'.toLowerCase()
def servletContainerTag = project.properties.'xwiki.test.ui.servletEngineTag'.toLowerCase()
def servletContainer = project.properties.'xwiki.test.ui.servletEngine'
def servletContainerTag = project.properties.'xwiki.test.ui.servletEngineTag'
if (servletContainer && servletContainerTag) {
buildScanApi.tag("${servletContainer} ${servletContainerTag}")
buildScanApi.tag("${servletContainer.toLowerCase()} ${servletContainerTag.toLowerCase()}")
}
def database = project.properties.'xwiki.test.ui.database'.toLowerCase()
def databaseTag = project.properties.'xwiki.test.ui.databaseTag'.toLowerCase()
def database = project.properties.'xwiki.test.ui.database'
def databaseTag = project.properties.'xwiki.test.ui.databaseTag'
if (database && databaseTag) {
buildScanApi.tag("${database} ${databaseTag}")
buildScanApi.tag("${database.toLowerCase()} ${databaseTag.toLowerCase()}")
}
def browser = project.properties.'xwiki.test.ui.browser'.toLowerCase()
def browser = project.properties.'xwiki.test.ui.browser'
if (browser) {
buildScanApi.tag(browser)
buildScanApi.tag(browser.toLowerCase())
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment