From 3f9bc4b39151eae5227cf4ad61088ce4b321da04 Mon Sep 17 00:00:00 2001 From: Vihang Mehta Date: Wed, 29 Jun 2022 15:40:12 -0700 Subject: [PATCH] Fix cli linux binary copy Summary: The `linux_binary` path is relative not `absolute` which breaks the cp. This fixes the same. Test Plan: Relase cli on jenkins Reviewers: michelle Reviewed By: michelle Signed-off-by: Vihang Mehta Differential Revision: https://phab.corp.pixielabs.ai/D11719 GitOrigin-RevId: adb23c5c37e44c032f049a6c642cde271c200448 --- ci/cli_build_release.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ci/cli_build_release.sh b/ci/cli_build_release.sh index 9efaf615407..a62fd56b49e 100755 --- a/ci/cli_build_release.sh +++ b/ci/cli_build_release.sh @@ -111,12 +111,14 @@ write_artifacts_to_gh() { gh release create "${TAG_NAME}" --repo=pixie-io/pixie --notes "Pixie CLI Release" tmp_dir="$(mktemp -d)" + + cp "${linux_binary}" "${tmp_dir}/cli_linux_amd64" + cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.deb" "${tmp_dir}/pixie-px.${linux_arch}.deb" + cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.rpm" "${tmp_dir}/pixie-px.${linux_arch}.rpm" + pushd "${tmp_dir}" - cp "${linux_binary}" "cli_linux_amd64" gpg --no-tty --batch --yes --local-user "${BUILDBOT_GPG_KEY_ID}" --armor --detach-sign "cli_linux_amd64" - cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.deb" "pixie-px.${linux_arch}.deb" gpg --no-tty --batch --yes --local-user "${BUILDBOT_GPG_KEY_ID}" --armor --detach-sign "pixie-px.${linux_arch}.deb" - cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.rpm" "pixie-px.${linux_arch}.rpm" gpg --no-tty --batch --yes --local-user "${BUILDBOT_GPG_KEY_ID}" --armor --detach-sign "pixie-px.${linux_arch}.rpm" gh release upload "${TAG_NAME}" --repo=pixie-io/pixie "cli_linux_amd64" "cli_linux_amd64.asc" "pixie-px.${linux_arch}.deb" "pixie-px.${linux_arch}.deb.asc" "pixie-px.${linux_arch}.rpm" "pixie-px.${linux_arch}.rpm.asc"