'fail jenkins ssh script in case a port is unreachable
I am trying to make a final check on my jenkins script, in case a port is available I want the script (build) to be a success, and in case its not available to mark it as failure. How can I achieve this easily?
this is the final check
$ nc -zv 10.10.10.24 3306
Connection to localhost 3306 port [tcp/mysql] succeeded!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
