Improvements to sprint build

This commit is contained in:
Rick Falkvinge
2014-11-16 11:47:34 +01:00
parent 64f47f247f
commit 4e1acff537
2 changed files with 19 additions and 0 deletions
@@ -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.
+16
View File
@@ -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 <builds@swarmops.com>" -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