Skip to content

Commit 4d62453

Browse files
committed
fix concurrency gate
1 parent 0219016 commit 4d62453

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.buildkite/build_pipeline.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,28 @@ steps:
2525
# value: ""
2626
# hint: "Should we ignore checking broken links? Should we allow to run the build without failing if there's a broken link? Ignoring broken links is dangerous not just because bad links will leak into the public site but because subsequent builds and pull requests that do not fix the links fail."
2727
# - wait
28+
# This step is purposefully outside of the concurrency gate
2829
- label: "Check for queue"
30+
key: check-queue
2931
# if: build.source == "schedule"
3032
command: ".buildkite/scripts/check_queue.sh"
33+
- label: "Start of concurrency gate"
34+
key: start-gate
35+
depends_on: check-queue
36+
command: echo "Start of concurrency gate"
37+
concurrency_group: gate/docs-build-${BUILDKITE_BRANCH}
38+
concurrency: 1
3139
- wait
3240
- label: "Full rebuild or incremental build?"
41+
key: build-type
42+
depends_on: start-gate
3343
# if: build.source == "schedule"
3444
command: ".buildkite/scripts/compare_commits.sh"
3545
concurrency: 1
3646
concurrency_group: docs-build-${BUILDKITE_BRANCH}
3747
- label: ":white_check_mark: Build docs"
48+
key: build-docs
49+
depends_on: build-type
3850
command: |
3951
export REBUILD="$(buildkite-agent meta-data get REBUILD --default '' --log-level fatal)"
4052
export BROKEN_LINKS="$(buildkite-agent meta-data get BROKEN_LINKS --default '' --log-level fatal)"
@@ -44,6 +56,11 @@ steps:
4456
image: family/docs-ubuntu-2204
4557
machineType: ${BUILD_MACHINE_TYPE}
4658
concurrency_group: docs-build-${BUILDKITE_BRANCH}
59+
- label: "End of concurrency gate"
60+
key: end-gate
61+
depends_on: build-docs
62+
command: echo "End of concurrency gate"
63+
concurrency_group: gate/docs-build-${BUILDKITE_BRANCH}
4764
notify:
4865
- email: "docs-status@elastic.co"
4966
if: build.state == "failed"

0 commit comments

Comments
 (0)