mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-19 04:45:07 -04:00
[Build] Remove mentioning ./gradlew assemble to build all distributions (#116400)
This causes problems since this also includes building our wolfi image that is based on a non public available base image resulting in build failure for user without access to the docker registry. We should avoid suggesting using ./gradlew assemble as it builds a tons of stuff unrelated to any distribution. Instead people should be pointed to `./gradlew localDistro`
This commit is contained in:
parent
e38aa7e8f1
commit
35c6b60c77
2 changed files with 45 additions and 39 deletions
|
@ -254,11 +254,6 @@ To build a distribution for another platform, run the related command:
|
|||
./gradlew :distribution:archives:windows-zip:assemble
|
||||
----
|
||||
|
||||
To build distributions for all supported platforms, run:
|
||||
----
|
||||
./gradlew assemble
|
||||
----
|
||||
|
||||
Distributions are output to `distribution/archives`.
|
||||
|
||||
To run the test suite, see xref:TESTING.asciidoc[TESTING].
|
||||
|
|
23
build.gradle
23
build.gradle
|
@ -13,14 +13,13 @@ import com.avast.gradle.dockercompose.tasks.ComposePull
|
|||
import com.fasterxml.jackson.databind.JsonNode
|
||||
import com.fasterxml.jackson.databind.ObjectMapper
|
||||
|
||||
import org.elasticsearch.gradle.DistributionDownloadPlugin
|
||||
import org.elasticsearch.gradle.Version
|
||||
import org.elasticsearch.gradle.internal.BaseInternalPluginBuildPlugin
|
||||
import org.elasticsearch.gradle.internal.ResolveAllDependencies
|
||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||
import org.elasticsearch.gradle.util.GradleUtils
|
||||
import org.gradle.plugins.ide.eclipse.model.AccessRule
|
||||
import org.gradle.plugins.ide.eclipse.model.ProjectDependency
|
||||
import org.elasticsearch.gradle.DistributionDownloadPlugin
|
||||
|
||||
import java.nio.file.Files
|
||||
|
||||
|
@ -89,7 +88,7 @@ class ListExpansion {
|
|||
|
||||
// Filters out intermediate patch releases to reduce the load of CI testing
|
||||
def filterIntermediatePatches = { List<Version> versions ->
|
||||
versions.groupBy {"${it.major}.${it.minor}"}.values().collect {it.max()}
|
||||
versions.groupBy { "${it.major}.${it.minor}" }.values().collect { it.max() }
|
||||
}
|
||||
|
||||
tasks.register("updateCIBwcVersions") {
|
||||
|
@ -101,7 +100,10 @@ tasks.register("updateCIBwcVersions") {
|
|||
}
|
||||
}
|
||||
|
||||
def writeBuildkitePipeline = { String outputFilePath, String pipelineTemplatePath, List<ListExpansion> listExpansions, List<StepExpansion> stepExpansions = [] ->
|
||||
def writeBuildkitePipeline = { String outputFilePath,
|
||||
String pipelineTemplatePath,
|
||||
List<ListExpansion> listExpansions,
|
||||
List<StepExpansion> stepExpansions = [] ->
|
||||
def outputFile = file(outputFilePath)
|
||||
def pipelineTemplate = file(pipelineTemplatePath)
|
||||
|
||||
|
@ -132,7 +134,12 @@ tasks.register("updateCIBwcVersions") {
|
|||
// Writes a Buildkite pipeline from a template, and replaces $BWC_STEPS with a list of steps, one for each version
|
||||
// Useful when you need to configure more versions than are allowed in a matrix configuration
|
||||
def expandBwcSteps = { String outputFilePath, String pipelineTemplatePath, String stepTemplatePath, List<Version> versions ->
|
||||
writeBuildkitePipeline(outputFilePath, pipelineTemplatePath, [], [new StepExpansion(templatePath: stepTemplatePath, versions: versions, variable: "BWC_STEPS")])
|
||||
writeBuildkitePipeline(
|
||||
outputFilePath,
|
||||
pipelineTemplatePath,
|
||||
[],
|
||||
[new StepExpansion(templatePath: stepTemplatePath, versions: versions, variable: "BWC_STEPS")]
|
||||
)
|
||||
}
|
||||
|
||||
doLast {
|
||||
|
@ -150,7 +157,11 @@ tasks.register("updateCIBwcVersions") {
|
|||
new ListExpansion(versions: filterIntermediatePatches(BuildParams.bwcVersions.unreleasedIndexCompatible), variable: "BWC_LIST"),
|
||||
],
|
||||
[
|
||||
new StepExpansion(templatePath: ".buildkite/pipelines/periodic.bwc.template.yml", versions: filterIntermediatePatches(BuildParams.bwcVersions.indexCompatible), variable: "BWC_STEPS"),
|
||||
new StepExpansion(
|
||||
templatePath: ".buildkite/pipelines/periodic.bwc.template.yml",
|
||||
versions: filterIntermediatePatches(BuildParams.bwcVersions.indexCompatible),
|
||||
variable: "BWC_STEPS"
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue