我在Jenkins的构建步骤“执行外壳”中使用了Heredoc块:
ssh $INSTANCE << EOSSH
sudo systemctl restart my.service
timeout 10 tail -f /srv/myService/myService.log
EOSSH
执行有效,但是在处理完詹金斯工作后失败:
Build step 'Execute shell' marked build as failure
在处理ssh块后如何执行它而不会失败?
我在Jenkins的构建步骤“执行外壳”中使用了Heredoc块:
ssh $INSTANCE << EOSSH
sudo systemctl restart my.service
timeout 10 tail -f /srv/myService/myService.log
EOSSH
执行有效,但是在处理完詹金斯工作后失败:
Build step 'Execute shell' marked build as failure
在处理ssh块后如何执行它而不会失败?