feat: jenkins server
This commit is contained in:
@@ -0,0 +1,160 @@
|
||||
jenkins:
|
||||
numExecutors: 2
|
||||
authorizationStrategy:
|
||||
loggedInUsersCanDoAnything:
|
||||
allowAnonymousRead: false
|
||||
securityRealm:
|
||||
local:
|
||||
allowsSignup: false
|
||||
users:
|
||||
- id: admin
|
||||
password: H0l4mund0!
|
||||
|
||||
# Agentes permanentes (inbound/JNLP): cada SCO conecta outbound a Jenkins.
|
||||
# Nombre = identificador en Jenkins. Label "sco" agrupa todos los SCOs,
|
||||
# luego cliente (ralph) y tienda (yabucoa / san-lorenzo / rio-grande).
|
||||
nodes:
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco02"
|
||||
labelString: "sco ralph yabucoa"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco03"
|
||||
labelString: "sco ralph yabucoa"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco04"
|
||||
labelString: "sco ralph yabucoa"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco05"
|
||||
labelString: "sco ralph yabucoa"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco06"
|
||||
labelString: "sco ralph yabucoa"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-yabucoa-sco07"
|
||||
labelString: "sco ralph yabucoa"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-san-lorenzo-sco03"
|
||||
labelString: "sco ralph san-lorenzo"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-san-lorenzo-sco04"
|
||||
labelString: "sco ralph san-lorenzo"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-san-lorenzo-sco05"
|
||||
labelString: "sco ralph san-lorenzo"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-san-lorenzo-sco06"
|
||||
labelString: "sco ralph san-lorenzo"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco01"
|
||||
labelString: "sco ralph rio-grande"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco02"
|
||||
labelString: "sco ralph rio-grande"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco03"
|
||||
labelString: "sco ralph rio-grande"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco04"
|
||||
labelString: "sco ralph rio-grande"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco05"
|
||||
labelString: "sco ralph rio-grande"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
- permanent:
|
||||
name: "ralph-rio-grande-sco06"
|
||||
labelString: "sco ralph rio-grande"
|
||||
remoteFS: "/opt/jenkins-agent"
|
||||
numExecutors: 1
|
||||
retentionStrategy: "always"
|
||||
launcher:
|
||||
inbound: {}
|
||||
|
||||
security:
|
||||
globalJobDslSecurityConfiguration:
|
||||
useScriptSecurity: false
|
||||
|
||||
jobs:
|
||||
- script: |
|
||||
pipelineJob('deploy-ralph') {
|
||||
description('Deploy de install.sh a los SCOs de Ralph en la tienda seleccionada.')
|
||||
definition {
|
||||
cps {
|
||||
script(new File('/opt/jenkins/Jenkinsfile.ralph').text)
|
||||
sandbox(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user