2019-08-14 16:16:20 -04:00
|
|
|
import org.elasticsearch.gradle.OS
|
2020-02-18 19:24:06 -05:00
|
|
|
import org.elasticsearch.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
|
|
|
}
|