Using ssh executor
command: |
cd /root/ && \
curl --retry 5 -m 10 https://XYZ && \
./command analyze && \
curl --retry 5 -m 10 https://XYZ
fails, but
command: |
cd /root/ && curl --retry 5 -m 10 XYZ && ./command analyze && curl --retry 5 -m 10 https://XYZ
works fine. I got an error saying use command instead of script, but that is what I did.