diff --git a/.buildkite/packaging.pipeline.yml b/.buildkite/packaging.pipeline.yml index 00b0bb9a0f4..10e42723cba 100644 --- a/.buildkite/packaging.pipeline.yml +++ b/.buildkite/packaging.pipeline.yml @@ -17,7 +17,7 @@ steps: # this prevents parallel builds and possibility of publishing out of order DRA artifacts if the first job takes longer than the second - name: Start of concurrency group for DRA Snapshot - if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" + if: (build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true") && build.env('VERSION_QUALIFIER') == null command: echo "--> Start of concurrency gate dra-snapshot" concurrency_group: "dra-gate-snapshot-$BUILDKITE_BRANCH" concurrency: 1 @@ -38,7 +38,7 @@ steps: key: dashboards steps: - label: Snapshot dashboards - if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" + if: (build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true") && build.env('VERSION_QUALIFIER') == null depends_on: start-gate-snapshot key: dashboards-snapshot # TODO: container with go and make @@ -83,7 +83,7 @@ steps: - build/distributions/**/* - group: Packaging snapshot - if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" + if: (build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true") && build.env('VERSION_QUALIFIER') == null key: packaging-snapshot depends_on: start-gate-snapshot steps: @@ -263,7 +263,7 @@ steps: steps: - label: DRA Snapshot ## Only for release branches and main - if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" + if: (build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true") && build.env('VERSION_QUALIFIER') == null key: dra-snapshot env: DRA_WORKFLOW: snapshot @@ -302,13 +302,13 @@ steps: - wait - command: echo "End of concurrency gate dra-snapshot <--" - if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" + if: (build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true") && build.env('VERSION_QUALIFIER') == null concurrency_group: "dra-gate-snapshot-$BUILDKITE_BRANCH" concurrency: 1 key: end-gate-snapshot - command: echo "End of concurrency gate dra-staging <--" - if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.env('VERSION_QUALIFIER') != null concurrency_group: "dra-gate-staging-$BUILDKITE_BRANCH" concurrency: 1 key: end-gate-staging