From: Andrew Schoen Date: Mon, 3 Oct 2016 18:31:39 +0000 (-0500) Subject: scripts: write the build_info properties file when updating shaman X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ba3b2f57139665a4f94290fc5e08a0680177dfc3;p=ceph-build.git 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 --- 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/"