7
7
* License v3.0 only", or the "Server Side Public License, v 1".
8
8
*/
9
9
10
- import java.lang.management.ManagementFactory ;
11
- import java.time.LocalDateTime ;
12
10
13
- import org.elasticsearch.gradle.Architecture
14
11
import org.elasticsearch.gradle.OS
15
- import static org.elasticsearch.gradle.internal.util.CiUtils.safeName
16
-
17
12
import java.lang.management.ManagementFactory
18
13
import java.time.LocalDateTime
14
+ import org.elasticsearch.gradle.Architecture
15
+
16
+ import static org.elasticsearch.gradle.internal.util.CiUtils.safeName
19
17
20
18
// Resolving this early to avoid issues with the build scan plugin in combination with the configuration cache usage
21
19
def taskNames = gradle. startParameter. taskNames. join(' ' )
@@ -32,10 +30,10 @@ develocity {
32
30
// Automatically publish scans from Elasticsearch CI
33
31
if (onCI) {
34
32
publishing. onlyIf { true }
35
- if (server. isPresent() == false ) {
33
+ if (server. isPresent() == false ) {
36
34
server = ' https://gradle-enterprise.elastic.co'
37
35
}
38
- } else if ( server. isPresent() == false ) {
36
+ } else if ( server. isPresent() == false ) {
39
37
publishing. onlyIf { false }
40
38
}
41
39
@@ -99,6 +97,15 @@ develocity {
99
97
tag ' pull-request'
100
98
link ' Source' , " ${ prBaseUrl} /tree/${ System.getenv('BUILDKITE_COMMIT')} "
101
99
link ' Pull Request' , " https://github.com/${ repository} /pull/${ prId} "
100
+ } else if (System . getenv(' ELASTICSEARCH_PR_NUMBER' )) {
101
+ // For tracking es-pr-check failures in the serverless repo caused by elasticsearch PRs
102
+ def esPr = System . getenv(' ELASTICSEARCH_PR_NUMBER' )
103
+ def esCommit = System . getenv(' ELASTICSEARCH_SUBMODULE_COMMIT' )
104
+ value ' Git Commit ID' , esCommit
105
+ tag " pr/${ esPr} "
106
+ tag ' pull-request'
107
+ link ' Source' , " https://github.com/elastic/elasticsearch/pull/${ esPr} /commits/${ esCommit} "
108
+ link ' Pull Request' , " https://github.com/elastic/elasticsearch/pull/${ esPr} "
102
109
} else {
103
110
value ' Git Commit ID' , gitRevision. get()
104
111
link ' Source' , " https://github.com/${ repository} /tree/${ gitRevision.get()} "
0 commit comments