Adds service test

This commit is contained in:
Hyatt 2020-08-30 11:23:52 -05:00
parent 1c367bb66a
commit 917fe9325c
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -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