[FEATURE] Ability to upload builds

This commit is contained in:
JKetelaar
2016-03-10 01:11:13 +01:00
parent 32cd3d7f26
commit 13bff21e1a
3 changed files with 14 additions and 7 deletions
+8
View File
@@ -0,0 +1,8 @@
#! /bin/bash
local_file="$(ls $TRAVIS_BUILD_DIR/target/final/Parabot-V*.jar | head -n 1)"
local_path="$(ls $TRAVIS_BUILD_DIR/target/final/Parabot-V*.jar | head -n 1 | xargs -n 1 basename)"
target_url='ftp://$FTP_HOST/~/uploads/version_control/$local_file'
echo "Uploading $local_file to $target_url"
curl -u $FTP_USER:$FTP_PASSWORD -T "$local_path" "$target_url"