From 897d8e1491b0b2b1a354dd48864edc8c9133d2a2 Mon Sep 17 00:00:00 2001 From: retropikzel Date: Wed, 22 Jul 2026 17:00:06 +0300 Subject: [PATCH] New builds --- Jenkinsfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index caaf7d5..ce0f707 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,21 +25,23 @@ pipeline { stage('Build') { steps { script { - def config = readJSON file: 'builds.json' - config['builds'].each { build -> - stage("${build['name']}") { + def config = readYaml file: 'builds.yaml' + 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}" } } } + */ } } }