diff --git a/build-deluge.jenkins b/build-deluge.jenkins index 24ed6c9..34ae19d 100644 --- a/build-deluge.jenkins +++ b/build-deluge.jenkins @@ -46,6 +46,13 @@ spec: container('kaniko') { def connectivity_test = """ #! /usr/bin/env bash +printf '%s\n' "Checking deluge service" +curl --silent --fail --insecure http://localhost:8112 > /dev/null +if [[ "\${?}" != "0" ]]; then + printf '%s\n' "Deluge not running." + exit 100 +fi + if [[ -z "\${DDNS_HOST}" ]] || [[ "\${DDNS_HOST}" == "" ]]; then printf '%s\n' "Dynamic DNS host is not set." exit 100