mirror of https://github.com/rusefi/fome-fw.git
no ssh upload I guess
This commit is contained in:
parent
322199ac87
commit
d7b4b5834f
|
@ -76,24 +76,6 @@ ls -l $FULL_BUNDLE_FILE
|
|||
|
||||
[ -e $FULL_BUNDLE_FILE ] || { echo "$SCRIPT_NAME: ERROR not found $FULL_BUNDLE_FILE"; exit 1; }
|
||||
|
||||
if [ -n "$RUSEFI_SSH_USER" ]; then
|
||||
echo "$SCRIPT_NAME: Uploading full bundle"
|
||||
retVal=0
|
||||
if [ "$2" = "true" ]; then
|
||||
tar -czf - $FULL_BUNDLE_FILE | sshpass -p $RUSEFI_SSH_PASS ssh -o StrictHostKeyChecking=no $RUSEFI_SSH_USER@$RUSEFI_SSH_SERVER "mkdir -p build_server/lts/$1; tar -xzf - -C build_server/lts/$1"
|
||||
retVal=$?
|
||||
else
|
||||
tar -czf - $FULL_BUNDLE_FILE | sshpass -p $RUSEFI_SSH_PASS ssh -o StrictHostKeyChecking=no $RUSEFI_SSH_USER@$RUSEFI_SSH_SERVER "tar -xzf - -C build_server"
|
||||
retVal=$?
|
||||
fi
|
||||
if [ $retVal -ne 0 ]; then
|
||||
echo "full bundle upload failed"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Upload not configured"
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
mkdir -p artifacts
|
||||
|
|
Loading…
Reference in New Issue