net/port/jenk

This commit is contained in:
Kameron Kenny 2024-06-05 21:19:31 -04:00
parent a6a4e89d7d
commit 360e871535
No known key found for this signature in database
GPG Key ID: E5006629839D2276
2 changed files with 5 additions and 5 deletions

8
Jenkinsfile vendored
View File

@ -25,12 +25,12 @@ pipeline {
script { script {
def status_s = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml') def status_s = sh(returnStatus: true, script: 'grep $(docker --context pi502 compose ps | tail -n1 | awk \'{ print $2 }\') docker-compose.yml')
if (status_s != 0) { //if (status_s != 0) {
sh 'docker --context pi502 compose up -d' sh 'docker --context pi502 compose up -d'
sh 'docker --context pi502 compose ps' sh 'docker --context pi502 compose ps'
} else { //} else {
echo 'skip' // echo 'skip'
} //}
} }
} }
} }

View File

@ -25,5 +25,5 @@ services:
- UP_UNIFI_CONTROLLER_0_SAVE_EVENTS=true - UP_UNIFI_CONTROLLER_0_SAVE_EVENTS=true
- UP_UNIFI_CONTROLLER_0_SAVE_IDS=true - UP_UNIFI_CONTROLLER_0_SAVE_IDS=true
- UP_UNIFI_CONTROLLER_0_SAVE_SITES=true - UP_UNIFI_CONTROLLER_0_SAVE_SITES=true
- UP_UNIFI_CONTROLLER_0_URL=https://unifi.in.thelinuxpro.net:8443/network - UP_UNIFI_CONTROLLER_0_URL=https://unifi.in.thelinuxpro.net:443/network
- UP_UNIFI_CONTROLLER_0_USER=unpoller - UP_UNIFI_CONTROLLER_0_USER=unpoller