]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts: write the build_info properties file when updating shaman
authorAndrew Schoen <aschoen@redhat.com>
Mon, 3 Oct 2016 18:31:39 +0000 (13:31 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 3 Oct 2016 18:31:39 +0000 (13:31 -0500)
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 <aschoen@redhat.com>
scripts/build_utils.sh

index a586e969580982c08236b09695d6d326967a78c0..40a899fcc6b7402e71c5e12aa209742ea3b929f6 100644 (file)
@@ -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/"