Skip to content

Commit

Permalink
Set metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
nkammah committed Dec 13, 2023
1 parent 347f4bc commit 5cd4e7a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
52 changes: 26 additions & 26 deletions .buildkite/build_pr_pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
steps:
- key: "cancel-existing-builds"
command: ".buildkite/scripts/cancel_running_pr.sh || true"
- key: "build-pr-setup"
label: "setup"
command: ".buildkite/scripts/build_pr_commit_status.sh pending"
- key: "build-pr"
label: ":hammer: Build docs PR"
command: ".buildkite/scripts/build_pr.sh"
depends_on:
- step: build-pr-setup
allow_failure: true
agents:
provider: "gcp"
image: family/docs-ubuntu-2204
machineType: ${BUILD_PR_MACHINE_TYPE}
- key: "teardown"
label: "teardown"
command: |
if [ $(buildkite-agent step get "outcome" --step "build-pr") == "passed" ]; then
.buildkite/scripts/build_pr_commit_status.sh success
else
.buildkite/scripts/build_pr_commit_status.sh failure
fi
depends_on:
- step: "build-pr"
- wait
# - key: "cancel-existing-builds"
# command: ".buildkite/scripts/cancel_running_pr.sh || true"
# - key: "build-pr-setup"
# label: "setup"
# command: ".buildkite/scripts/build_pr_commit_status.sh pending"
# - key: "build-pr"
# label: ":hammer: Build docs PR"
# command: ".buildkite/scripts/build_pr.sh"
# depends_on:
# - step: build-pr-setup
# allow_failure: true
# agents:
# provider: "gcp"
# image: family/docs-ubuntu-2204
# machineType: ${BUILD_PR_MACHINE_TYPE}
# - key: "teardown"
# label: "teardown"
# command: |
# if [ $(buildkite-agent step get "outcome" --step "build-pr") == "passed" ]; then
# .buildkite/scripts/build_pr_commit_status.sh success
# else
# .buildkite/scripts/build_pr_commit_status.sh failure
# fi
# depends_on:
# - step: "build-pr"
# - wait
- key: "branch-comparison"
label: "Compare branches"
command: |
Expand Down
3 changes: 2 additions & 1 deletion .buildkite/scripts/compare_bk_jenkins_branches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

BUILDKITE_BRANCH=$1
JENKINS_BRANCH=$2

buildkite-agent meta-data set "bk-jenkins-branch-comparison" "identical"
exit 2
if [ -z ${BUILDKITE_BRANCH} ] || [ -z ${JENKINS_BRANCH} ];then
echo "Missing BUILDKITE_BRANCH or JENKINS_BRANCH - aborting"
exit 1
Expand Down

0 comments on commit 5cd4e7a

Please sign in to comment.