New builds

This commit is contained in:
retropikzel 2026-07-22 17:00:06 +03:00
parent af2647c669
commit 897d8e1491
1 changed files with 9 additions and 7 deletions

16
Jenkinsfile vendored
View File

@ -25,21 +25,23 @@ pipeline {
stage('Build') { stage('Build') {
steps { steps {
script { script {
def config = readJSON file: 'builds.json' def config = readYaml file: 'builds.yaml'
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 -> /*
stage("${stage['name']}") { build.stages.each { stage ->
stage("${stage.name}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "${stage['cmd']}" sh "${stage.cmd}"
} }
} }
} }
*/
} }
} }
} }