Gradle Plugin to allow projects to report their jUnit results to endpoints defined by the user.
To find out how to apply this plugin to your Gradle project see the information over at the Gradle Plugin Portal!
Optional parameters are available to configure this plugin differently. The parameters can be set as environment variables which must have the following structure:
# Path to file of type String
plugins.junitreporting.properties.path=Path (eg. /var/result/reporting.properties)
# Determine separate testing / production servers of type Boolean?
plugins.junitreporting.properties.isProductionSystem=Boolean or empty
Otherwise the parameters must be set in the projects own gradle.properties file.
# Path to normal configuration properties file
plugins.junitreporting.properties.path=Path (eg. /var/result/reporting.properties)
# Path to alternate configuration properties file (replaces normal path)
plugins.junitreporting.properties.alternatePath=Path (eg. /var/result/reporting_alternate.properties)
# Determine separate testing / production servers (or one single if empty)
plugins.junitreporting.properties.isProductionSystem=Boolean or empty
The reporting.properties file given by one of the configurations should look like this:
# which filtering function in project extra properties should be used (e.g. VISUS.filterJUnitProjects)
product.filter=String
# which version should be used in metadata (e.g. VISUS.version)
product.version=String
# which release candidate should be used in metadata (e.g. VISUS.rc)
product.rc=String
# whether release type is only a patch (e.g. VISUS.patch)
product.patch=String
# which REST endpoint should be used for publishing results (e.g. http://127.0.0.1:12345/VISUS)
endpoint.rest=URL
# template of the path where RC results should be stored by default
# possible templated elements are: {VERSION}, {VERSION_ABCx}, {VERSION_ABx}, {VERSION_Ax}, {RC}, {BRANCH}, {BUILDID}
# -> BRANCH / BUILDID will be replaced using environment variables!
# -> e.g \\\\nw-share\\product\\build\\{BRANCH}\\{BUILDID} may result in
# \\\\nw-share\\product\\build\\bug--JIRA-123\\45
endpoint.rc.default.template=Path
# template of the path were RC results should be stored for version
# possible templated elements are: {VERSION}, {VERSION_ABCx}, {VERSION_ABx}, {VERSION_Ax}, {RC}, {BRANCH}, {BUILDID}
# -> BRANCH / BUILDID will be replaced using environment variables!
# -> e.g. \\\\nw-share\\product\\release\\{VERSION}\\{RC}\\{BUILDID} may result in
# \\\\nw-share\\product\\release\\2.6.2\\RC05\\4
endpoint.rc.version.template=Path
# template of the path were RC results should be stored for patch
# possible templated elements are: {VERSION}, {VERSION_ABCx}, {VERSION_ABx}, {VERSION_Ax}, {RC}, {BRANCH}, {BUILDID}
# -> BRANCH / BUILDID will be replaced using environment variables!
# -> e.g. \\\\nw-share\\product\\patch\\{VERSION_Ax}\\{VERSION_ABx}\\{VERSION}-{RC}\\{BUILDID} may result in
# \\\\nw-share\\product\\patch\\1.x\\1.2.x\\1.2.3-RC01\\9
endpoint.rc.patch.template=Path
Only when RC starts with "RC" and does not end with "_build" (eg. "RC02") jUnit results will be written to the path endpoint as well as the REST endpoint!