Skip to content

Commit

Permalink
Try out use-https flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nkammah committed Dec 18, 2023
1 parent 4ef5584 commit ae52d63
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
49 changes: 26 additions & 23 deletions .buildkite/build_pr_pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
env:
USE_HTTPS_CLONE: true

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: "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"
Expand All @@ -14,21 +17,21 @@ steps:
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: |
.buildkite/scripts/compare_bk_jenkins_branches.sh ${GITHUB_PR_BASE_REPO}_bk_${GITHUB_PR_NUMBER} ${GITHUB_PR_BASE_REPO}_${GITHUB_PR_NUMBER}
agents:
provider: "gcp"
image: family/docs-ubuntu-2204
# - 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: |
# .buildkite/scripts/compare_bk_jenkins_branches.sh ${GITHUB_PR_BASE_REPO}_bk_${GITHUB_PR_NUMBER} ${GITHUB_PR_BASE_REPO}_${GITHUB_PR_NUMBER}
# agents:
# provider: "gcp"
# image: family/docs-ubuntu-2204
2 changes: 1 addition & 1 deletion .buildkite/scripts/build_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ echo "The following build command will be used"
echo $build_cmd

# Kick off the build
ssh-agent bash -c "ssh-add && $build_cmd"
echo ssh-agent bash -c "ssh-add && $build_cmd"

buildkite-agent annotate \
--style "success" \
Expand Down

0 comments on commit ae52d63

Please sign in to comment.