feat: new client, store and docs
This commit is contained in:
@@ -7,6 +7,11 @@ pipeline {
|
||||
choices: ['yabucoa', 'san-lorenzo', 'rio-grande'],
|
||||
description: 'Tienda destino'
|
||||
)
|
||||
string(
|
||||
name: 'NODO',
|
||||
defaultValue: '',
|
||||
description: 'Nombre exacto del nodo a deployar (vacío = toda la tienda)'
|
||||
)
|
||||
}
|
||||
|
||||
stages {
|
||||
@@ -24,6 +29,13 @@ pipeline {
|
||||
script {
|
||||
def labelExpr = "ralph && ${params.TIENDA}"
|
||||
def nodes = nodesByLabel(label: labelExpr, offline: false)
|
||||
if (params.NODO?.trim()) {
|
||||
def target = params.NODO.trim()
|
||||
if (!nodes.contains(target)) {
|
||||
error "El nodo '${target}' no está online o no pertenece al label: ${labelExpr}"
|
||||
}
|
||||
nodes = [target]
|
||||
}
|
||||
if (nodes.isEmpty()) {
|
||||
error "No hay nodos online con el label: ${labelExpr}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user