Skip to content

Commit 27edd83

Browse files
committed
rename
1 parent 2728ac5 commit 27edd83

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ tasks.register("configureArtifactInfo") {
176176
int minor = splitVersion[1].toInteger()
177177
String branch = "${major}.${minor}"
178178
String fallbackMajorX = "${major}.x"
179-
boolean isMajorFirstMinor = minor - 1 < 0
180-
String fallbackMinor = isMajorFirstMinor ? "${major-1}.x" : "${major}.${minor-1}"
179+
boolean isFallBackPreviousMajor = minor - 1 < 0
180+
String fallbackBranch = isFallBackPreviousMajor ? "${major-1}.x" : "${major}.${minor-1}"
181181
def qualifiedVersion = ""
182182

183-
for (b in [branch, fallbackMajorX, fallbackMinor]) {
183+
for (b in [branch, fallbackMajorX, fallbackBranch]) {
184184
def url = "https://storage.googleapis.com/artifacts-api/snapshots/${b}.json"
185185
try {
186186
def snapshotInfo = new JsonSlurper().parseText(url.toURL().text)
@@ -432,10 +432,10 @@ tasks.register("downloadFilebeat") {
432432
doLast {
433433
download {
434434
String beatsVersion = project.ext.get("artifactApiVersion")
435-
String downloadedFilebeatName = "filebeat-${beatVersion}-${project.ext.get("beatsArchitecture")}"
435+
String downloadedFilebeatName = "filebeat-${beatsVersion}-${project.ext.get("beatsArchitecture")}"
436436
project.ext.set("unpackedFilebeatName", downloadedFilebeatName)
437437

438-
def res = SnapshotArtifactURLs.packageUrls("beats", beatVersion, downloadedFilebeatName)
438+
def res = SnapshotArtifactURLs.packageUrls("beats", beatsVersion, downloadedFilebeatName)
439439
project.ext.set("filebeatSnapshotUrl", System.getenv("FILEBEAT_SNAPSHOT_URL") ?: res.packageUrl)
440440
project.ext.set("filebeatDownloadLocation", "${projectDir}/build/${downloadedFilebeatName}.tar.gz")
441441

0 commit comments

Comments
 (0)