Adds service test
This commit is contained in:
parent
1c367bb66a
commit
917fe9325c
@ -46,6 +46,13 @@ spec:
|
|||||||
container('kaniko') {
|
container('kaniko') {
|
||||||
def connectivity_test = """
|
def connectivity_test = """
|
||||||
#! /usr/bin/env bash
|
#! /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
|
if [[ -z "\${DDNS_HOST}" ]] || [[ "\${DDNS_HOST}" == "" ]]; then
|
||||||
printf '%s\n' "Dynamic DNS host is not set."
|
printf '%s\n' "Dynamic DNS host is not set."
|
||||||
exit 100
|
exit 100
|
||||||
|
Reference in New Issue
Block a user