add openweather config
This commit is contained in:
parent
410492dba7
commit
ad1ced3c8d
|
@ -39,16 +39,17 @@ pipeline {
|
|||
stage('Start container') {
|
||||
steps {
|
||||
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')
|
||||
sh 'docker --context pi502 compose pull telegraf'
|
||||
|
||||
if (status_s != 0) {
|
||||
sh 'docker --context pi502 compose up -d'
|
||||
sh 'docker --context pi502 compose ps'
|
||||
} else {
|
||||
//if (status_s != 0) {
|
||||
// sh 'docker --context pi502 compose up -d'
|
||||
// sh 'docker --context pi502 compose ps'
|
||||
//} else {
|
||||
sh 'docker --context pi502 compose down'
|
||||
sh 'docker --context pi502 compose up -d'
|
||||
sh 'docker --context pi502 compose ps'
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
# insecure_skip_verify = false
|
||||
|
||||
# Read flattened metrics from one or more JSON HTTP endpoints
|
||||
[[inputs.httpjson]]
|
||||
[[inputs.http]]
|
||||
name = "OpenWeather"
|
||||
|
||||
servers = [
|
||||
|
|
Loading…
Reference in New Issue