Commit 3cd81996 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

parent d423d624
......@@ -29,6 +29,6 @@
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site:
import com.gradle.maven.extension.api.scan.BuildScanApi
* Captures the Maven active profiles and add them as tags to the Build Scan. The goal is to make it simpler to
* filter builds on <a href=""></a> by filtering on Maven profiles.
BuildScanApi buildScan = session.lookup('com.gradle.maven.extension.api.scan.BuildScanApi')
if (!buildScan) {
buildScan.executeOnce('tag-profiles') { BuildScanApi buildScanApi ->
// Add all maven profile names as tags
project.activeProfiles.each { buildScanApi.tag( }
// Add all system properties starting with "xwiki" as custom values { 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 ='xwiki.test.ui.servletEngine'.toLowerCase()
def servletContainerTag ='xwiki.test.ui.servletEngineTag'.toLowerCase()
if (servletContainer && servletContainerTag) {
buildScanApi.tag("${servletContainer} ${servletContainerTag}")
def database ='xwiki.test.ui.database'.toLowerCase()
def databaseTag ='xwiki.test.ui.databaseTag'.toLowerCase()
if (database && databaseTag) {
buildScanApi.tag("${database} ${databaseTag}")
def browser ='xwiki.test.ui.browser'.toLowerCase()
if (browser) {
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