In Azure DevOps, recently SSH task is failing when I ran SSH task as a inline script. Earlier I was running this command in SSH task as inline script and deployment was successful before.
cd /www/xxx/xxx/xxx/platform
source setantenv_devops.sh
ant updatesystem -Dtenant=xxx -DconfigFile=/www/xxx/xxx/xxx/platform/xxx_update_config.json
Now since this issue of not able to run azure devops ssh task as inline script i want to run the SSH task as commands option in azure DevOps but it's failing with error
##[error]bash: setantenv_devops.sh: No such file or directory
But the file setantenv_devops.sh exists in that particular location.
source setantenv_devops.sh
? – Krzysztof Madej