From 4e1acff5377e5039c1898608af2c3c87a15cf28a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 16 Nov 2014 11:47:34 +0100 Subject: [PATCH] Improvements to sprint build --- .../Packaging/templates/mail-sprint-ready.txt | 3 +++ BuildFiles/Packaging/test-build-drop | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 BuildFiles/Packaging/templates/mail-sprint-ready.txt diff --git a/BuildFiles/Packaging/templates/mail-sprint-ready.txt b/BuildFiles/Packaging/templates/mail-sprint-ready.txt new file mode 100644 index 00000000..5643327b --- /dev/null +++ b/BuildFiles/Packaging/templates/mail-sprint-ready.txt @@ -0,0 +1,3 @@ +A sprint build has been deployed to staging area. It is ready for packaging and deployment. + +Shell to swarmops-dev and run the 'do-sprint' script to deploy the sprint. diff --git a/BuildFiles/Packaging/test-build-drop b/BuildFiles/Packaging/test-build-drop index d7fa1167..075282e4 100755 --- a/BuildFiles/Packaging/test-build-drop +++ b/BuildFiles/Packaging/test-build-drop @@ -4,6 +4,22 @@ # /home/packager/lastbuild/swarmops/internal/BuildDropped.txt # and if that file exists, it launches an internal build. +# It also watches for the completion of a sprint/release build and informs +# when it is ready for deployment, but does not actually package those. + +if [ -e /home/packager/lastbuild/swarmops/sprint/BuildDropped.txt ]; then + rm /home/packager/lastbuild/swarmops/sprint/BuildDropped.txt + SPRINTNAME=$(cat ../lastbuild/swarmops/sprint/frontend/SprintName.txt | tr -d '\n') + BUILDID=$(cat ../lastbuild/swarmops/sprint/BuildIdentity.txt | tr -d ' \r') + COMMITID=$(cat ../lastbuild/swarmops/sprint/CommitIdentity.txt | tr -d ' \r') + BUILDID=$(echo $BUILDID | cut -c 1-6)$(echo $COMMITID | cut -c 1-7) + + mail -a "From: Swarmops Builder " -s "Swarmops SPRINT $SPRINTNAME ($BUILDID) ready." "rick.falkvinge@pirateacademy.eu" < /home/packager/swarmops/templates/mail-sprint-ready.txt + +fi + + + if [ ! -e /home/packager/lastbuild/swarmops/internal/BuildDropped.txt ]; then exit 0; fi