diff options
-rwxr-xr-x | dscip | 2 | ||||
-rwxr-xr-x | failed.sh | 4 | ||||
-rwxr-xr-x | post.sh | 8 |
3 files changed, 9 insertions, 5 deletions
diff --git a/dscip b/dscip index 275648d..5d86b93 100755 --- a/dscip +++ b/dscip @@ -54,7 +54,7 @@ build () { # Print variables # { echo "################################################################################"; - printf "%s" "$(date) | $DSCIP_NAME | $CURRENT_COMMIT" + printf "%s\n" "$(date) | $DSCIP_NAME | $CURRENT_COMMIT" echo "################################################################################"; echo "DSCIP_GITREPO=$DSCIP_GITREPO"; echo "DSCIP_GITMODE=$DSCIP_GITMODE"; diff --git a/failed.sh b/failed.sh index 524f16c..e1e0f02 100755 --- a/failed.sh +++ b/failed.sh @@ -8,8 +8,8 @@ ftp -in <<EOF open 192.168.1.5 mkdir $DSCIP_NAME cd $DSCIP_NAME -mkdir $CURRENT_NAME -cd $CURRENT_NAME +mkdir $CURRENT_COMMIT +cd $CURRENT_COMMIT mkdir $(uname) cd $(uname) put $WORKING_DIRECTORY/output.txt output-failed.txt diff --git a/post.sh b/post.sh index 8d5404b..307aa5a 100755 --- a/post.sh +++ b/post.sh @@ -13,10 +13,14 @@ $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz app/ ftp -in <<EOF open 192.168.255.255 user username p@ssw0rd +mkdir $DSCIP_NAME +cd $DSCIP_NAME mkdir $CURRENT_COMMIT cd $CURRENT_COMMIT -put $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz -put $WORKING_DIRECTORY/output.txt output-$CURRENT_COMMIT.txt +mkdir $(uname) +cd $(uname) +put $DSCIP_NAME-$(uname)-$(uname -r)_$(uname -m)-$CURRENT_COMMIT.tar.xz +put $WORKING_DIRECTORY/output.txt output-success.txt close bye EOF |