net/port/jenk
This commit is contained in:
parent
a6a4e89d7d
commit
360e871535
|
@ -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'
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue