Skip to content

Commit 9cde9f2

Browse files
andreeaflorescurbradford
authored andcommitted
buildkite: Fix path in post-checkout hook
The buildkite-agent actually clones the code in ${BUILDKITE_BUILD_CHECKOUT_PATH}. There is no need to add the repository name. Signed-off-by: Andreea Florescu <fandree@amazon.com>
1 parent d758d9e commit 9cde9f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.buildkite/hooks/post-checkout

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
DEB_NAME="linux-image-4.9.0-9-amd64_4.9.168-1_amd64.deb"
44
DEB_URL="http://ftp.debian.org/debian/pool/main/l/linux/${DEB_NAME}"
55

6-
REPO_PATH="${BUILDKITE_BUILD_CHECKOUT_PATH}/linux-loader"
6+
REPO_PATH="${BUILDKITE_BUILD_CHECKOUT_PATH}"
77
DEB_PATH="${REPO_PATH}/${DEB_NAME}"
88
EXTRACT_PATH="${REPO_PATH}/src/bzimage-archive"
99
BZIMAGE_PATH="${EXTRACT_PATH}/boot/vmlinuz-4.9.0-9-amd64"
@@ -13,6 +13,7 @@ mkdir -p ${EXTRACT_PATH}
1313
wget $DEB_URL -P ${REPO_PATH}
1414
dpkg-deb -x ${DEB_PATH} ${EXTRACT_PATH}
1515

16+
1617
mv ${BZIMAGE_PATH} ${REPO_PATH}/src/loader/bzimage
1718
rm -r ${EXTRACT_PATH}
1819
rm -f ${DEB_PATH}

0 commit comments

Comments
 (0)