From ba3b2f57139665a4f94290fc5e08a0680177dfc3 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Mon, 3 Oct 2016 13:31:39 -0500 Subject: [PATCH] scripts: write the build_info properties file when updating shaman Centralize the creation of this file in one place so that other scripts do not have to remember to write it when they want to post updates to shaman. Signed-off-by: Andrew Schoen --- scripts/build_utils.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index a586e969..40a899fc 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -159,6 +159,16 @@ submit_build_status() { "sha1":"$SHA1", "flavor":"$FLAVOR" } +EOF + + # these variables are saved in this jenkins + # properties file so that other scripts + # in the same job can inject them + cat > $WORKSPACE/build_info << EOF +NORMAL_DISTRO=$distro +NORMAL_DISTRO_VERSION=$distro_version +NORMAL_ARCH=$distro_arch +SHA1=$SHA1 EOF SHAMAN_URL="https://shaman.ceph.com/api/builds/$project/" -- 2.39.5