Skip to content

Commit 3f9bc4b

Browse files
vihangmcopybaranaut
authored andcommitted
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 <vihang@pixielabs.ai> Differential Revision: https://phab.corp.pixielabs.ai/D11719 GitOrigin-RevId: adb23c5
1 parent ccc99d4 commit 3f9bc4b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ci/cli_build_release.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ write_artifacts_to_gh() {
111111
gh release create "${TAG_NAME}" --repo=pixie-io/pixie --notes "Pixie CLI Release"
112112

113113
tmp_dir="$(mktemp -d)"
114+
115+
cp "${linux_binary}" "${tmp_dir}/cli_linux_amd64"
116+
cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.deb" "${tmp_dir}/pixie-px.${linux_arch}.deb"
117+
cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.rpm" "${tmp_dir}/pixie-px.${linux_arch}.rpm"
118+
114119
pushd "${tmp_dir}"
115-
cp "${linux_binary}" "cli_linux_amd64"
116120
gpg --no-tty --batch --yes --local-user "${BUILDBOT_GPG_KEY_ID}" --armor --detach-sign "cli_linux_amd64"
117-
cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.deb" "pixie-px.${linux_arch}.deb"
118121
gpg --no-tty --batch --yes --local-user "${BUILDBOT_GPG_KEY_ID}" --armor --detach-sign "pixie-px.${linux_arch}.deb"
119-
cp "/mnt/jenkins/sharedDir/image/${pkg_prefix}.rpm" "pixie-px.${linux_arch}.rpm"
120122
gpg --no-tty --batch --yes --local-user "${BUILDBOT_GPG_KEY_ID}" --armor --detach-sign "pixie-px.${linux_arch}.rpm"
121123

122124
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"

0 commit comments

Comments
 (0)