Jenkins + Minio + Prometheus + Grafana v1
This commit is contained in:
@@ -0,0 +1,617 @@
|
||||
jenkins:
|
||||
numExecutors: 2
|
||||
nodeMonitors:
|
||||
- "architecture"
|
||||
- "clock"
|
||||
- diskSpace:
|
||||
freeSpaceThreshold: "0"
|
||||
freeSpaceWarningThreshold: "0"
|
||||
- "swapSpace"
|
||||
- tmpSpace:
|
||||
freeSpaceThreshold: "0"
|
||||
freeSpaceWarningThreshold: "0"
|
||||
- "responseTime"
|
||||
authorizationStrategy:
|
||||
loggedInUsersCanDoAnything:
|
||||
allowAnonymousRead: false
|
||||
securityRealm:
|
||||
local:
|
||||
allowsSignup: false
|
||||
users:
|
||||
- id: admin
|
||||
password: H0l4mund0!
|
||||
# Agentes permanentes (WebSocket): cada SCO conecta outbound a Jenkins via wss://.
|
||||
# El deploy (Jenkinsfile.sco) targetea por nombre exacto de nodo (parámetro NODO),
|
||||
# no por label, por eso los nodos no llevan labelString.
|
||||
nodes:
|
||||
- permanent:
|
||||
name: "ralph-caguas-sco04"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-caguas-sco05"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-caguas-sco06"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-caguas-sco07"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-caguas-sco08"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-caguas-sco09"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-cayey-sco01"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-cayey-sco02"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-cayey-sco03"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-cayey-sco04"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-deleste-humacao-sco01"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-deleste-humacao-sco02"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-fajardo-sco07"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-fajardo-sco08"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-fajardo-sco09"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-fajardo-sco10"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-fajardo-sco11"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-fajardo-sco12"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-gurabo-sco03"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-gurabo-sco04"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-gurabo-sco05"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-gurabo-sco06"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-humacao-sco07"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-humacao-sco08"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-humacao-sco09"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-humacao-sco10"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-humacao-sco11"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-humacao-sco12"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-juntos-sco04"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-juntos-sco05"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-juntos-sco06"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-juntos-sco07"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-las-piedras-sco08"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-las-piedras-sco09"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-las-piedras-sco10"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-las-piedras-sco11"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-las-piedras-sco12"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-montehiedra-sco13"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-montehiedra-sco14"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-montehiedra-sco15"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-montehiedra-sco16"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-montehiedra-sco17"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-montehiedra-sco18"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-montehiedra-sco19"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-montehiedra-sco20"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-naguabo-sco04"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-naguabo-sco05"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-naguabo-sco06"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-naguabo-sco07"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco02"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco03"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco04"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco05"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco06"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco07"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-san-lorenzo-sco03"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-san-lorenzo-sco04"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-san-lorenzo-sco05"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-san-lorenzo-sco06"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco01"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco02"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco03"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco04"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco05"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco06"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "laboratorio-girboy-sco81"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "laboratorio-girboy-sco82"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "laboratorio-girboy-sco83"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
- permanent:
|
||||
name: "hisense-santiago-sco01"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound:
|
||||
webSocket: true
|
||||
|
||||
|
||||
unclassified:
|
||||
location:
|
||||
url: https://jenkins.laoficina1782.com/
|
||||
security:
|
||||
globalJobDslSecurityConfiguration:
|
||||
useScriptSecurity: false
|
||||
jobs:
|
||||
- script: |
|
||||
pipelineJob('deploy-sco') {
|
||||
description('Deploy de install.sh a un nodo SCO puntual, para el cliente seleccionado.')
|
||||
definition {
|
||||
cps {
|
||||
script(new File('/opt/jenkins/Jenkinsfile.sco').text)
|
||||
sandbox(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
- script: |
|
||||
pipelineJob('deploy-sco-reports') {
|
||||
description('Deploy de install.sh.reports a un nodo SCO puntual, para el cliente+sucursal+sco seleccionado.')
|
||||
definition {
|
||||
cps {
|
||||
script(new File('/opt/jenkins/Jenkinsfile.sco.reports').text)
|
||||
sandbox(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
- script: |
|
||||
pipelineJob('history-sco') {
|
||||
description('Reprocesa el historial de logs de un nodo SCO puntual via sco-agent.')
|
||||
definition {
|
||||
cps {
|
||||
script(new File('/opt/jenkins/Jenkinsfile.sco.reports.history').text)
|
||||
sandbox(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user