about summary refs log tree commit diff stats
path: root/failed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'failed.sh')
-rwxr-xr-xfailed.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/failed.sh b/failed.sh
new file mode 100755
index 0000000..524f16c
--- /dev/null
+++ b/failed.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -eu
+
+# This script determines what to do if the build failed.
+# Below is an example of uploading the output.txt to an ftp server.
+ftp -in <<EOF
+open 192.168.1.5
+mkdir $DSCIP_NAME
+cd $DSCIP_NAME
+mkdir $CURRENT_NAME
+cd $CURRENT_NAME
+mkdir $(uname)
+cd $(uname)
+put $WORKING_DIRECTORY/output.txt output-failed.txt
+close
+bye
+EOF