if __name__ == '__main__':
+ print len(sys.argv)
if len(sys.argv) != 5 and len(sys.argv) !=6:
# if the build was just started:
print("usage: %s $job_name $build_number $liveboot_request_id $start_time")
#set -x
export
-SCRIPTSDIR=$(dirname $0)
+if [ "$REQUEST_ID" = "" ] ; then
+ echo "REQUEST_ID must not be empty!"
+ exit 1
+fi
#
# Define default settings
# dc1+2 (mgmt1)
RSYNC_DST5="liveboot@10.1.1.1/liveboot/"
+SCRIPTSDIR=$(dirname $0)
BUILD_SCRIPT=$(mktemp)
cat > $BUILD_SCRIPT <<-EOF
cd /srv/build