@@ -35,15 +35,22 @@ repositories {
35
35
36
36
// Cloud builds bundle some beats
37
37
ivy {
38
+ name = ' beats'
38
39
if (useLocalArtifacts) {
39
40
url " file://${ buildDir} /artifacts/"
40
41
patternLayout {
41
- artifact ' /[organisation]/[module]-[revision]-linux- [classifier].[ext]'
42
+ artifact ' /[organisation]/[module]-[revision]-[classifier].[ext]'
42
43
}
43
44
} else {
44
- url " https://${ VersionProperties.isElasticsearchSnapshot() ? 'snapshots' : ' artifacts' } -no-kpi .elastic.co/"
45
+ url " https://artifacts-snapshot .elastic.co/"
45
46
patternLayout {
46
- artifact ' /downloads/[organization]/[module]/[module]-[revision]-linux-[classifier].[ext]'
47
+ if (VersionProperties . isElasticsearchSnapshot()) {
48
+ artifact ' /[organization]/[revision]/downloads/[organization]/[module]/[module]-[revision]-[classifier].[ext]'
49
+ } else {
50
+ // When building locally we always use snapshot artifacts even if passing `-Dbuild.snapshot=false`.
51
+ // Release builds are always done with a local repo.
52
+ artifact ' /[organization]/[revision]-SNAPSHOT/downloads/[organization]/[module]/[module]-[revision]-SNAPSHOT-[classifier].[ext]'
53
+ }
47
54
}
48
55
}
49
56
metadataSources { artifact() }
@@ -72,8 +79,8 @@ dependencies {
72
79
log4jConfig project(path : " :distribution" , configuration : ' log4jConfig' )
73
80
tini " krallin:tini:0.19.0:${ tiniArch} "
74
81
allPlugins project(path : ' :plugins' , configuration : ' allPlugins' )
75
- filebeat " beats:filebeat:${ VersionProperties.elasticsearch} :${ beatsArch} @tar.gz"
76
- metricbeat " beats:metricbeat:${ VersionProperties.elasticsearch} :${ beatsArch} @tar.gz"
82
+ filebeat " beats:filebeat:${ VersionProperties.elasticsearch} :linux- ${ beatsArch} @tar.gz"
83
+ metricbeat " beats:metricbeat:${ VersionProperties.elasticsearch} :linux- ${ beatsArch} @tar.gz"
77
84
}
78
85
79
86
ext. expansions = { Architecture architecture , DockerBase base ->
0 commit comments