fix jenkinsfile
This commit is contained in:
parent
466b41113b
commit
5d103ad841
|
@ -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 compose --context pi502 down'
|
sh 'docker --context compose pi502 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 compose --context pi503 down'
|
sh 'docker --context compose pi503 down'
|
||||||
sh 'sleep 5'
|
sh 'sleep 5'
|
||||||
} else {
|
} else {
|
||||||
echo 'skip'
|
echo 'skip'
|
||||||
|
|
|
@ -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.3
|
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole1:250224.0.4
|
||||||
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.3
|
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole2:250224.0.4
|
||||||
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.3
|
image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole3:250224.0.4
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
TZ: 'America/Indianapolis'
|
TZ: 'America/Indianapolis'
|
||||||
|
|
Loading…
Reference in New Issue