From 3547c4886773acec0ac562104f055528ed490b75 Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Thu, 31 May 2018 10:53:08 -0700 Subject: Add SHA512 file to nightly build PiperOrigin-RevId: 198745666 Change-Id: I38d4163cd65f1236b09ce4f6481197a9a9fd29f2 --- kokoro/gcp_ubuntu/release-nightly.cfg | 5 +++-- kokoro/gcp_ubuntu/run_build.sh | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kokoro/gcp_ubuntu/release-nightly.cfg b/kokoro/gcp_ubuntu/release-nightly.cfg index 09939197d..cae10cb83 100644 --- a/kokoro/gcp_ubuntu/release-nightly.cfg +++ b/kokoro/gcp_ubuntu/release-nightly.cfg @@ -2,9 +2,10 @@ build_file: "repo/kokoro/gcp_ubuntu/run_build.sh" action { - # Upload only the runsc binary. It may be in multiple paths, so we must use - # the wildcard. + # Upload runsc binary and its checksum. It may be in multiple paths, so we + # must use the wildcard. define_artifacts { regex: "**/runsc" + regex: "**/runsc.sha512" } } diff --git a/kokoro/gcp_ubuntu/run_build.sh b/kokoro/gcp_ubuntu/run_build.sh index bc1fe433c..056d242d4 100755 --- a/kokoro/gcp_ubuntu/run_build.sh +++ b/kokoro/gcp_ubuntu/run_build.sh @@ -37,4 +37,6 @@ latest_dir="${KOKORO_ARTIFACTS_DIR}"/latest today_dir="${KOKORO_ARTIFACTS_DIR}"/"$(date -Idate)" mkdir -p "${latest_dir}" "${today_dir}" cp bazel-bin/runsc/linux_amd64_pure_stripped/runsc "${latest_dir}" +sha512sum "${latest_dir}"/runsc | awk '{print $1 " runsc"}' > "${latest_dir}"/runsc.sha512 cp bazel-bin/runsc/linux_amd64_pure_stripped/runsc "${today_dir}" +sha512sum "${today_dir}"/runsc | awk '{print $1} " runsc"' > "${today_dir}"/runsc.sha512 -- cgit v1.2.3