34 lines
971 B
Groovy
34 lines
971 B
Groovy
/*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* The OpenSearch Contributors require contributions made to
|
|
* this file be licensed under the Apache-2.0 license or a
|
|
* compatible open source license.
|
|
*
|
|
* Modifications Copyright OpenSearch Contributors. See
|
|
* GitHub history for details.
|
|
*/
|
|
|
|
import org.opensearch.gradle.OS
|
|
import org.opensearch.gradle.info.BuildParams
|
|
import org.gradle.initialization.BuildRequestMetaData
|
|
|
|
import java.util.concurrent.TimeUnit
|
|
|
|
long startTime = project.gradle.services.get(BuildRequestMetaData).getStartTime()
|
|
|
|
buildScan {
|
|
URL jenkinsUrl = System.getenv('JENKINS_URL') ? new URL(System.getenv('JENKINS_URL')) : null
|
|
String buildNumber = System.getenv('BUILD_NUMBER')
|
|
String buildUrl = System.getenv('BUILD_URL')
|
|
String jobName = System.getenv('JOB_NAME')
|
|
String nodeName = System.getenv('NODE_NAME')
|
|
|
|
tag OS.current().name()
|
|
|
|
// Tag if this build is run in FIPS mode
|
|
if (BuildParams.inFipsJvm) {
|
|
tag 'FIPS'
|
|
}
|
|
}
|