Is is possible to get the value of how many times the wget command retries? and how? I want to include the number of retries in the email, to be send after the build in Jenkins.
According to Man Pages
Set number of tries to number. Specify 0 or ‘inf’ for infinite retrying. The default is to retry 20 times, with the exception of fatal errors like “connection refused” or “not found” (404), which are not retried.