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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48323-44420.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48323-44420.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?