From af2647c6699cae1584ad32239b9bc2db94d51dfa Mon Sep 17 00:00:00 2001 From: retropikzel Date: Wed, 22 Jul 2026 16:57:26 +0300 Subject: [PATCH] New builds --- Jenkinsfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cd40867..caaf7d5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,17 +26,17 @@ pipeline { steps { script { def config = readJSON file: 'builds.json' - config.builds.each { build -> - stage("${build.name}") { + config['builds'].each { build -> + stage("${build['name']}") { agent { docker { - image "${build.image}" + image "${build['image']}" } } - build.stages.each { stage -> - stage("${stage.name}") { + build['stages'].each { stage -> + stage("${stage['name']}") { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh "${stage.cmd}" + sh "${stage['cmd']}" } } }