feat: new client, store and docs

This commit is contained in:
aagusfernandez02
2026-07-06 11:44:56 -03:00
parent 326872d471
commit 71a6c49875
6 changed files with 587 additions and 25 deletions
+12
View File
@@ -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}"
}