2021-04-09 15:28:18 -04:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2021-03-12 13:49:28 -05:00
|
|
|
import org.opensearch.gradle.OS
|
|
|
|
import org.opensearch.gradle.info.BuildParams
|
2019-11-11 04:22:47 -05:00
|
|
|
import org.gradle.initialization.BuildRequestMetaData
|
|
|
|
|
|
|
|
import java.util.concurrent.TimeUnit
|
|
|
|
|
2020-01-10 17:51:25 -05:00
|
|
|
long startTime = project.gradle.services.get(BuildRequestMetaData).getStartTime()
|
2019-07-16 12:34:00 -04:00
|
|
|
|
|
|
|
buildScan {
|
2019-11-14 06:01:23 -05:00
|
|
|
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')
|
2019-07-16 12:34:00 -04:00
|
|
|
|
2019-11-14 06:01:23 -05:00
|
|
|
tag OS.current().name()
|
2019-08-14 16:16:20 -04:00
|
|
|
|
2020-04-29 17:29:35 -04:00
|
|
|
// Tag if this build is run in FIPS mode
|
|
|
|
if (BuildParams.inFipsJvm) {
|
|
|
|
tag 'FIPS'
|
|
|
|
}
|
2019-10-04 01:41:06 -04:00
|
|
|
}
|