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