Skip to content

Commit

Permalink
Omit snapshot dra when VERSION_QUALIFIER is set (#2922)
Browse files Browse the repository at this point in the history
omit snapshot dra when VERSION_QUALIFIER is set
  • Loading branch information
moukoublen authored Jan 17, 2025
1 parent 3f6cb7a commit 00bb62b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,18 @@ agents:
image: "family/platform-ingest-beats-ubuntu-2204"

steps:
# TODO: this will be removed/changed for 9.0 branch
- label: ":writing_hand: Conditionally set VERSION_QUALIFIER for main branch"
if: build.branch == "main"
env:
VERSION_QUALIFIER: "alpha1"
command: "echo 'Setting VERSION_QUALIFIER for branch main'"

# TODO remove || build.env('VERSION_QUALIFIER') == null
- label: ":package: Package Cloudbeat - Snapshot"
if: build.branch == 'main' || build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.env("RUN_RELEASE") == "true"
if: build.branch == 'main' || build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.env("RUN_RELEASE") == "true" || build.env('VERSION_QUALIFIER') == null
env:
WORKFLOW: "snapshot"
key: "package-snapshot"
command: "./.buildkite/scripts/package.sh"
artifact_paths: "build/distributions/*"

# TODO remove || build.env('VERSION_QUALIFIER') == null
- label: ":rocket: Publishing Snapshot DRA artifacts"
if: build.branch == 'main' || build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.env("RUN_RELEASE") == "true"
if: build.branch == 'main' || build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.env("RUN_RELEASE") == "true" || build.env('VERSION_QUALIFIER') == null
depends_on: "package-snapshot"
command: "./.buildkite/scripts/publish.sh"
env:
Expand Down

0 comments on commit 00bb62b

Please sign in to comment.