diff --git a/libcxx/utils/ci/buildkite-pipeline-premerge.sh b/libcxx/utils/ci/buildkite-pipeline-premerge.sh --- a/libcxx/utils/ci/buildkite-pipeline-premerge.sh +++ b/libcxx/utils/ci/buildkite-pipeline-premerge.sh @@ -15,28 +15,10 @@ # Invoked by CI on pre-merge check for a commit. # -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - if ! git diff --name-only HEAD~1 | grep -q -E "libcxx/|libcxxabi/"; then - # libcxx is not affected + # libc++ and libc++abi are not affected exit 0 fi -reviewID="$(git log --format=%B -n 1 | sed -nE 's/^Review-ID:[[:space:]]*(.+)$/\1/p')" -if [[ "${reviewID}" != "" ]]; then - buildMessage="https://llvm.org/${reviewID}" -else - buildMessage="Push to branch ${BUILDKITE_BRANCH}" -fi - - -cat </dev/null 2>&1 && pwd)" +cat "${THIS_DIR}/buildkite-pipeline.yml" diff --git a/libcxx/utils/ci/buildkite-pipeline-snapshot.sh b/libcxx/utils/ci/buildkite-pipeline-snapshot.sh --- a/libcxx/utils/ci/buildkite-pipeline-snapshot.sh +++ b/libcxx/utils/ci/buildkite-pipeline-snapshot.sh @@ -14,12 +14,5 @@ # Invoked by CI on full builds. # -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -cat </dev/null 2>&1 && pwd)" +cat "${THIS_DIR}/buildkite-pipeline.yml"