mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[artifacts] Setup conditional release vs snapshot build (#128801)
* [artifacts] Setup conditional release vs snapshot build * Update .buildkite/scripts/steps/artifacts/build.sh Co-authored-by: Brian Seeders <seeders@gmail.com> Co-authored-by: Brian Seeders <seeders@gmail.com>
This commit is contained in:
parent
8eadbc655d
commit
0068a8c0de
1 changed files with 10 additions and 2 deletions
|
@ -4,8 +4,16 @@ set -euo pipefail
|
|||
|
||||
.buildkite/scripts/bootstrap.sh
|
||||
|
||||
if [[ "${RELEASE_BUILD:-}" == "true" ]]; then
|
||||
VERSION="$(jq -r '.version' package.json)"
|
||||
RELEASE_ARG="--release"
|
||||
else
|
||||
VERSION="$(jq -r '.version' package.json)-SNAPSHOT"
|
||||
RELEASE_ARG=""
|
||||
fi
|
||||
|
||||
echo "--- Build Kibana Distribution"
|
||||
node scripts/build --all-platforms --debug --docker-cross-compile --skip-docker-cloud
|
||||
node scripts/build "$RELEASE_ARG" --all-platforms --debug --docker-cross-compile --skip-docker-cloud
|
||||
|
||||
echo "--- Build dependencies report"
|
||||
node scripts/licenses_csv_report --csv=target/dependencies_report.csv
|
||||
node scripts/licenses_csv_report "--csv=target/dependencies-$VERSION.csv"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue