feat(docker-compose.yml): update pipeline configuration to use Jenkinsfile.sco for client deployment and remove unused labels
This commit is contained in:
@@ -21,12 +21,11 @@ jenkins:
|
|||||||
- id: admin
|
- id: admin
|
||||||
password: H0l4mund0!
|
password: H0l4mund0!
|
||||||
# Agentes permanentes (WebSocket): cada SCO conecta outbound a Jenkins via wss://.
|
# Agentes permanentes (WebSocket): cada SCO conecta outbound a Jenkins via wss://.
|
||||||
# Nombre = identificador en Jenkins. Label "sco" agrupa todos los SCOs,
|
# El deploy (Jenkinsfile.sco) targetea por nombre exacto de nodo (parámetro NODO),
|
||||||
# luego cliente (ralph) y tienda (yabucoa / san-lorenzo / rio-grande).
|
# no por label, por eso los nodos no llevan labelString.
|
||||||
nodes:
|
nodes:
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-yabucoa-sco02"
|
name: "ralph-yabucoa-sco02"
|
||||||
labelString: "sco ralph yabucoa"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -35,7 +34,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-yabucoa-sco03"
|
name: "ralph-yabucoa-sco03"
|
||||||
labelString: "sco ralph yabucoa"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -44,7 +42,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-yabucoa-sco04"
|
name: "ralph-yabucoa-sco04"
|
||||||
labelString: "sco ralph yabucoa"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -53,7 +50,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-yabucoa-sco05"
|
name: "ralph-yabucoa-sco05"
|
||||||
labelString: "sco ralph yabucoa"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -62,7 +58,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-yabucoa-sco06"
|
name: "ralph-yabucoa-sco06"
|
||||||
labelString: "sco ralph yabucoa"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -71,7 +66,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-yabucoa-sco07"
|
name: "ralph-yabucoa-sco07"
|
||||||
labelString: "sco ralph yabucoa"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -80,7 +74,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-san-lorenzo-sco03"
|
name: "ralph-san-lorenzo-sco03"
|
||||||
labelString: "sco ralph san-lorenzo"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -89,7 +82,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-san-lorenzo-sco04"
|
name: "ralph-san-lorenzo-sco04"
|
||||||
labelString: "sco ralph san-lorenzo"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -98,7 +90,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-san-lorenzo-sco05"
|
name: "ralph-san-lorenzo-sco05"
|
||||||
labelString: "sco ralph san-lorenzo"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -107,7 +98,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-san-lorenzo-sco06"
|
name: "ralph-san-lorenzo-sco06"
|
||||||
labelString: "sco ralph san-lorenzo"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -116,7 +106,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-rio-grande-sco01"
|
name: "ralph-rio-grande-sco01"
|
||||||
labelString: "sco ralph rio-grande"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -125,7 +114,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-rio-grande-sco02"
|
name: "ralph-rio-grande-sco02"
|
||||||
labelString: "sco ralph rio-grande"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -134,7 +122,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-rio-grande-sco03"
|
name: "ralph-rio-grande-sco03"
|
||||||
labelString: "sco ralph rio-grande"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -143,7 +130,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-rio-grande-sco04"
|
name: "ralph-rio-grande-sco04"
|
||||||
labelString: "sco ralph rio-grande"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -152,7 +138,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-rio-grande-sco05"
|
name: "ralph-rio-grande-sco05"
|
||||||
labelString: "sco ralph rio-grande"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -161,7 +146,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "ralph-rio-grande-sco06"
|
name: "ralph-rio-grande-sco06"
|
||||||
labelString: "sco ralph rio-grande"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -170,7 +154,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "laboratorio-girboy-sco81"
|
name: "laboratorio-girboy-sco81"
|
||||||
labelString: "sco laboratorio girboy"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -179,7 +162,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "laboratorio-girboy-sco82"
|
name: "laboratorio-girboy-sco82"
|
||||||
labelString: "sco laboratorio girboy"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -188,7 +170,6 @@ jenkins:
|
|||||||
webSocket: true
|
webSocket: true
|
||||||
- permanent:
|
- permanent:
|
||||||
name: "laboratorio-girboy-sco83"
|
name: "laboratorio-girboy-sco83"
|
||||||
labelString: "sco laboratorio girboy"
|
|
||||||
remoteFS: "/opt/jenkins-agent"
|
remoteFS: "/opt/jenkins-agent"
|
||||||
numExecutors: 1
|
numExecutors: 1
|
||||||
retentionStrategy: "always"
|
retentionStrategy: "always"
|
||||||
@@ -204,21 +185,11 @@ security:
|
|||||||
useScriptSecurity: false
|
useScriptSecurity: false
|
||||||
jobs:
|
jobs:
|
||||||
- script: |
|
- script: |
|
||||||
pipelineJob('deploy-ralph') {
|
pipelineJob('deploy-sco') {
|
||||||
description('Deploy de install.sh a los SCOs de Ralph en la tienda seleccionada.')
|
description('Deploy de install.sh a un nodo SCO puntual, para el cliente seleccionado.')
|
||||||
definition {
|
definition {
|
||||||
cps {
|
cps {
|
||||||
script(new File('/opt/jenkins/Jenkinsfile.ralph').text)
|
script(new File('/opt/jenkins/Jenkinsfile.sco').text)
|
||||||
sandbox(true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
- script: |
|
|
||||||
pipelineJob('deploy-lab') {
|
|
||||||
description('Deploy de install.sh a los SCOs de Deploy Lab en la tienda seleccionada.')
|
|
||||||
definition {
|
|
||||||
cps {
|
|
||||||
script(new File('/opt/jenkins/Jenkinsfile.lab').text)
|
|
||||||
sandbox(true)
|
sandbox(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -30,8 +30,7 @@ services:
|
|||||||
- ./data/jenkins_home:/var/jenkins_home
|
- ./data/jenkins_home:/var/jenkins_home
|
||||||
- ./data/jenkins/jenkins.yaml:/usr/share/jenkins/ref/jenkins.yaml:ro
|
- ./data/jenkins/jenkins.yaml:/usr/share/jenkins/ref/jenkins.yaml:ro
|
||||||
- ./data/jenkins/deploy:/opt/deploy:ro
|
- ./data/jenkins/deploy:/opt/deploy:ro
|
||||||
- ./data/jenkins/pipelines/Jenkinsfile.ralph:/opt/jenkins/Jenkinsfile.ralph:ro
|
- ./data/jenkins/pipelines/Jenkinsfile.sco:/opt/jenkins/Jenkinsfile.sco:ro
|
||||||
- ./data/jenkins/pipelines/Jenkinsfile.lab:/opt/jenkins/Jenkinsfile.lab:ro
|
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user