From 93ba6a88c2e84c8f1ce1c1f40810adabc570b9ab Mon Sep 17 00:00:00 2001 From: bmorelli25 Date: Wed, 11 Sep 2024 09:20:01 -0700 Subject: [PATCH] Revert "feat: skip build for APM Server if there are no code changes (#3051)" This reverts commit 2fc87e4020831c338c042ae76cce0a5322eac9fe. --- .buildkite/scripts/build_pr.sh | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/.buildkite/scripts/build_pr.sh b/.buildkite/scripts/build_pr.sh index dbd26227e817..3aa9159e5bae 100755 --- a/.buildkite/scripts/build_pr.sh +++ b/.buildkite/scripts/build_pr.sh @@ -52,23 +52,8 @@ if [[ "${GITHUB_PR_BASE_REPO}" != 'docs' ]]; then cd ./product-repo && git fetch origin pull/$GITHUB_PR_NUMBER/head:pr_$GITHUB_PR_NUMBER && - git switch pr_$GITHUB_PR_NUMBER - - if [[ "${GITHUB_PR_BASE_REPO}" == 'apm-server' ]]; then - docs_diff=$(git diff --stat "$GITHUB_PR_TARGET_BRANCH"...HEAD -- ./docs ./changelogs CHANGELOG.asciidoc) - else - docs_diff=$(git diff --stat "$GITHUB_PR_TARGET_BRANCH"...HEAD) - fi - - if [[ -z $docs_diff ]]; then - echo "${GITHUB_PR_TARGET_BRANCH} in ${GITHUB_PR_BASE_REPO} has no docs changes" - exit 0 - fi - - echo "diff:" - echo "$docs_diff" - - cd .. + git switch pr_$GITHUB_PR_NUMBER && + cd .. # For product repos - context in https://github.com/elastic/docs/commit/5b06c2dc1f50208fcf6025eaed6d5c4e81200330 build_args+=" --keep_hash" build_args+=" --sub_dir $GITHUB_PR_BASE_REPO:$GITHUB_PR_TARGET_BRANCH:./product-repo"