Problem: YAML parser failed on line 125 due to unnecessary escape characters - \'Server connection OK\' - unnecessary single quote escaping - \'/$|/home\' - unnecessary path escaping - Caused 'did not find expected - indicator' error Solution: Remove unnecessary escape characters while maintaining command functionality - Simplified to 'echo Server connection OK' and 'grep -E /$|/home' - Commands still work correctly without the extra escaping
This commit is contained in:
+2
-2
@@ -139,8 +139,8 @@ steps:
|
||||
- echo "SSH key file created, checking permissions:"
|
||||
- ls -la ~/.ssh/
|
||||
- 'echo "Testing SSH connection..."'
|
||||
- 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "echo \'Server connection OK\'"'
|
||||
- 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "df -h | grep -E \'/\$|/home\'"'
|
||||
- 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "echo Server connection OK"'
|
||||
- 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "df -h | grep -E /$|/home"'
|
||||
- 'echo "Syncing build artifacts to production server"'
|
||||
- 'rsync -avz --delete -e "ssh -o StrictHostKeyChecking=no" dist/ root@139.155.109.62:/home/novalon/docker-app/novalon-website/dist/'
|
||||
- 'rsync -avz -e "ssh -o StrictHostKeyChecking=no" public/ root@139.155.109.62:/home/novalon/docker-app/novalon-website/public/'
|
||||
|
||||
Reference in New Issue
Block a user