diff --git a/.buildkite/packaging.pipeline.yml b/.buildkite/packaging.pipeline.yml index 5fd559f458d..67cdfa36326 100644 --- a/.buildkite/packaging.pipeline.yml +++ b/.buildkite/packaging.pipeline.yml @@ -17,14 +17,14 @@ 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 =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" command: echo "--> Start of concurrency gate dra-snapshot" concurrency_group: "dra-gate-snapshot-$BUILDKITE_BRANCH" concurrency: 1 key: start-gate-snapshot - name: Start of concurrency group for DRA Staging - if: build.branch =~ /^\d+\.\d+$$/ + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ command: echo "--> Start of concurrency gate dra-staging" concurrency_group: "dra-gate-staging-$BUILDKITE_BRANCH" concurrency: 1 @@ -36,7 +36,7 @@ steps: key: dashboards steps: - label: Snapshot dashboards - if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" depends_on: start-gate-snapshot key: dashboards-snapshot # TODO: container with go and make @@ -58,7 +58,7 @@ steps: - build/distributions/**/* - label: Staging dashboards - if: build.branch =~ /^\d+\.\d+$$/ + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ depends_on: start-gate-staging key: dashboards-staging # TODO: container with go and make @@ -80,7 +80,7 @@ steps: - build/distributions/**/* - group: Packaging snapshot - if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" key: packaging-snapshot depends_on: start-gate-snapshot steps: @@ -169,7 +169,7 @@ steps: key: packaging-staging depends_on: start-gate-staging ## Only for release - if: build.branch =~ /^\d+\.\d+$$/ + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ steps: - label: "STAGING: {{matrix}}" env: @@ -257,7 +257,7 @@ steps: steps: - label: DRA Snapshot ## Only for release branches and main - if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" key: dra-snapshot env: DRA_WORKFLOW: snapshot @@ -276,7 +276,7 @@ steps: - label: DRA Staging ## Only for release branches - if: build.branch =~ /^\d+\.\d+$$/ + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ key: dra-staging env: DRA_WORKFLOW: staging @@ -296,13 +296,13 @@ steps: - wait - command: echo "End of concurrency gate dra-snapshot <--" - if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true" concurrency_group: "dra-gate-snapshot-$BUILDKITE_BRANCH" concurrency: 1 key: end-gate-snapshot - command: echo "End of concurrency gate dra-staging <--" - if: build.branch =~ /^\d+\.\d+$$/ + if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ concurrency_group: "dra-gate-staging-$BUILDKITE_BRANCH" concurrency: 1 key: end-gate-staging