fix jenkinsfile

This commit is contained in:
Kameron Kenny 2025-02-24 21:30:52 -05:00
parent 5d103ad841
commit 05a76217ed
2 changed files with 5 additions and 5 deletions

4
Jenkinsfile vendored
View File

@ -74,7 +74,7 @@ pipeline {
def status = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml') def status = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml')
if (status != 0) { if (status != 0) {
sh 'docker --context compose pi502 down' sh 'docker --context pi502 compose down'
sh 'sleep 5' sh 'sleep 5'
} else { } else {
echo 'skip' echo 'skip'
@ -106,7 +106,7 @@ pipeline {
def status = sh(returnStatus: true, script: 'grep $(docker --context pi503 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml') def status = sh(returnStatus: true, script: 'grep $(docker --context pi503 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml')
if (status != 0) { if (status != 0) {
sh 'docker --context compose pi503 down' sh 'docker --context pi503 compose down'
sh 'sleep 5' sh 'sleep 5'
} else { } else {
echo 'skip' echo 'skip'

View File

@ -10,7 +10,7 @@ services:
build: build:
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: pihole1 container_name: pihole1
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole1:250224.0.4 image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole1:250224.0.5
restart: unless-stopped restart: unless-stopped
environment: environment:
TZ: 'America/Indianapolis' TZ: 'America/Indianapolis'
@ -30,7 +30,7 @@ services:
build: build:
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: pihole2 container_name: pihole2
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole2:250224.0.4 image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole2:250224.0.5
restart: unless-stopped restart: unless-stopped
environment: environment:
TZ: 'America/Indianapolis' TZ: 'America/Indianapolis'
@ -50,7 +50,7 @@ services:
build: build:
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: pihole3 container_name: pihole3
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole3:250224.0.4 image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole3:250224.0.5
restart: unless-stopped restart: unless-stopped
environment: environment:
TZ: 'America/Indianapolis' TZ: 'America/Indianapolis'