Add more tags to build scans

This commit is contained in:
Yoann Rodière 2024-03-21 14:58:16 +01:00 committed by Steve Ebersole
parent 6f640e1d6d
commit bc14ea52eb
2 changed files with 10 additions and 1 deletions

4
Jenkinsfile vendored
View File

@ -124,6 +124,10 @@ stage('Build') {
state[buildEnv.tag]['additionalOptions'] = state[buildEnv.tag]['additionalOptions'] +
" -Ptest.jdk.launcher.args='${buildEnv.testJdkLauncherArgs}'"
}
if ( buildEnv.node ) {
state[buildEnv.tag]['additionalOptions'] = state[buildEnv.tag]['additionalOptions'] +
" -Pci.node=${buildEnv.node}"
}
state[buildEnv.tag]['containerName'] = null;
stage('Checkout') {
checkout scm

View File

@ -50,6 +50,11 @@ gradleEnterprise {
tag "JOB ${System.getenv('JOB_NAME')}"
}
tag "JDK ${JavaVersion.current().toString()}"
value 'database', rootProject.hasProperty( 'db' ) ? rootProject.properties.db : 'h2'
String db = rootProject.hasProperty( 'db' ) ? rootProject.properties.db : 'h2'
tag db
value 'database', db
if ( rootProject.hasProperty( 'ci.node' ) ) {
tag rootProject.property('ci.node')
}
}
}