about summary refs log blame commit diff stats
path: root/failed.sh
blob: 1477e123c2bafb5384ec4128effecff4e8b1b76a (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                   
                      

                 

                     





                                                   
#!/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
user username password
mkdir $DSCIP_NAME
cd $DSCIP_NAME
mkdir $CURRENT_COMMIT
cd $CURRENT_COMMIT
mkdir $(uname)
cd $(uname)
put $WORKING_DIRECTORY/output.txt output-failed.txt
close
bye
EOF