diff --git a/build.gradle b/build.gradle index 208a51e1fd663..888f89acc08a9 100644 --- a/build.gradle +++ b/build.gradle @@ -204,11 +204,11 @@ tasks.register("verifyVersions") { throw new GradleException("No branch choice exists for development branch ${unreleasedVersion.branch} in .backportrc.json.") } } - String versionMapping = backportConfig.get("branchLabelMapping").fields().find { it.value.textValue() == 'main' }.key + String versionMapping = backportConfig.get("branchLabelMapping").fields().find { it.value.textValue() == '8.x' }.key String expectedMapping = "^v${versions.elasticsearch.replaceAll('-SNAPSHOT', '')}\$" if (versionMapping != expectedMapping) { throw new GradleException( - "Backport label mapping for branch 'main' is '${versionMapping}' but should be " + + "Backport label mapping for branch '8.x' is '${versionMapping}' but should be " + "'${expectedMapping}'. Update .backportrc.json." ) }