New builds

This commit is contained in:
retropikzel 2026-07-22 16:57:26 +03:00
parent 23e1118730
commit af2647c669
1 changed files with 6 additions and 6 deletions

12
Jenkinsfile vendored
View File

@ -26,17 +26,17 @@ pipeline {
steps { steps {
script { script {
def config = readJSON file: 'builds.json' def config = readJSON file: 'builds.json'
config.builds.each { build -> config['builds'].each { build ->
stage("${build.name}") { stage("${build['name']}") {
agent { agent {
docker { docker {
image "${build.image}" image "${build['image']}"
} }
} }
build.stages.each { stage -> build['stages'].each { stage ->
stage("${stage.name}") { stage("${stage['name']}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "${stage.cmd}" sh "${stage['cmd']}"
} }
} }
} }