BUILD_END=$(date +%s)
$SCRIPTSDIR/liveboot2db.py $JOB_NAME $BUILD_NUMBER $REQUEST_ID $BUILD_START $BUILD_END "successful"
-# FIXME: too much sudo here...
-cd /srv/build/liveboot/builds
-sudo mv *-* /srv/mirror/liveboot
-cd /srv/build/
-sudo rm liveboot -Rf
+if [ "$GIT_BRANCH" = "master" ] ; then
+ # FIXME: too much sudo here...
+ cd /srv/build/liveboot/builds
+ sudo mv *-* /srv/mirror/liveboot
+ cd /srv/build/
+ sudo rm liveboot -Rf
+else
+ echo "Development build, no rsyncing of images."
+fi
#
# remove trap to not set failure at the end :)