mirror of https://github.com/sipwise/ec2-tools.git
Since quite some time nginx listens on (a) specific IP address(es) instead of just listening on all interfaces (see previous commit a225c3a15f3e6d0 AKA Change-Id: I42257d8b2a1eedf7433158477983cfc5f9c97315). Because we didn't error out if SSH-ing fails or port 1443 isn't in LISTEN state the script just checked until it ran into the retry limit and then continued without failing. Instead let's report this error to the Jenkins job/user by failing the run if either SSH doesn't work or port 1443 isn't in LISTEN state. While at it move the "retry" variable assignment in front of the reporting, so we don't end it with "1 retries left" and also get rid of `unnecessary on arithmetic variables` in subshell (the $retry usage). Change-Id: Ic7a4a39e460c4c81866c12b4b8b90c69f213538fchanges/41/7041/2
parent
229b761100
commit
7bcbec0956
Loading…
Reference in new issue