Skip to content

Commit 84dbe94

Browse files
authored
Drop keep-hash fro docs PR builds (#2860)
1 parent e7c7f1b commit 84dbe94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.buildkite/scripts/build_pr.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ if [[ "${GITHUB_PR_BASE_REPO}" != 'docs' ]]; then
5454
git fetch origin pull/$GITHUB_PR_NUMBER/head:$GITHUB_PR_BRANCH &&
5555
git switch $GITHUB_PR_BRANCH &&
5656
cd ..
57-
57+
# For product repos - context in https://github.com/elastic/docs/commit/5b06c2dc1f50208fcf6025eaed6d5c4e81200330
58+
build_args+=" --keep_hash"
5859
build_args+=" --sub_dir $GITHUB_PR_BASE_REPO:$GITHUB_PR_TARGET_BRANCH:./product-repo"
5960
else
6061
# Buildkite PR bot for the `elastic/docs` repo is configured to checkout the PR directly into the workspace
@@ -72,7 +73,7 @@ fi
7273
TARGET_BRANCH="${GITHUB_PR_BASE_REPO}_bk_${GITHUB_PR_NUMBER}"
7374
PREVIEW_URL="https://${TARGET_BRANCH}.docs-preview.app.elstc.co"
7475

75-
build_cmd="./build_docs --all --keep_hash \
76+
build_cmd="./build_docs --all \
7677
--target_repo [email protected]:elastic/built-docs \
7778
--reference /opt/git-mirrors/ \
7879
--target_branch ${TARGET_BRANCH} \

0 commit comments

Comments
 (0)