New builds
This commit is contained in:
parent
10cd26f963
commit
5ca3fc468b
|
|
@ -25,7 +25,7 @@ pipeline {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def config = readYaml file: 'builds.yaml'
|
def config = readJSONfile: 'builds.json'
|
||||||
config.builds.each { build ->
|
config.builds.each { build ->
|
||||||
stage("${build.name}") {
|
stage("${build.name}") {
|
||||||
agent {
|
agent {
|
||||||
|
|
@ -33,7 +33,6 @@ pipeline {
|
||||||
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') {
|
||||||
|
|
@ -41,7 +40,6 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue