From 917fe9325c501265dc347411433b115d442a97e8 Mon Sep 17 00:00:00 2001 From: The_Spider Date: Sun, 30 Aug 2020 11:23:52 -0500 Subject: [PATCH] Adds service test --- build-deluge.jenkins | 7 +++++++ 1 file changed, 7 insertions(+) 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