In the build scripts we can write the NORMALIZED_* vars to a property
file so that if the build fails the postbuildscript can use inject those
vars and use them to properly post build info to shaman.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
NORMAL_DISTRO_VERSION=$DIST
NORMAL_ARCH=$ARCH
+# Write these values to a file so the failure
+# script can consume them if the build fails
+cat > $WORKSPACE/build_info << EOF
+NORMAL_DISTRO=$distro
+NORMAL_DISTRO_VERSION=$DIST
+NORMAL_ARCH=$ARCH
+EOF
+
# create build status in shaman
create_build_status "started" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
NORMAL_DISTRO_VERSION=$RELEASE
NORMAL_ARCH=$ARCH
+# Write these values to a file so the failure
+# script can consume them if the build fails
+cat > $WORKSPACE/build_info << EOF
+NORMAL_DISTRO=$distro
+NORMAL_DISTRO_VERSION=$DIST
+NORMAL_ARCH=$ARCH
+EOF
+
# create build status in shaman
create_build_status "started" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
script-only-if-failed: True
script-only-if-succeeded: False
builders:
+ - inject:
+ properties-file: ${WORKSPACE}/build_info
- shell:
!include-raw:
- ../../../scripts/build_utils.sh