How does Jenkins use SSH to build a project to determine whether it is successful or not?

this is my build configuration, connecting to two servers through SSH and executing commands.

but no matter whether the command execution succeeds or fails, the final output of Jenkins is success. How should I set it to judge correctly?

Mar.09,2021
Menu