New builds
This commit is contained in:
parent
641d8fc7fb
commit
e27df2fa97
|
|
@ -26,15 +26,15 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def config = readYaml file: 'builds.yaml'
|
def config = readYaml file: 'builds.yaml'
|
||||||
config.each { build ->
|
config.builds.each { build ->
|
||||||
stage("WIP") {
|
stage("${build.name}") {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image "${build.image}"
|
image "${build.image}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
config.stages.each { stage ->
|
config.stages.each { stage ->
|
||||||
stage("WIP") {
|
stage("${stage.name}") {
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh "${stage.cmd}"
|
sh "${stage.cmd}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
builds:
|
||||||
- name: Chibi
|
- name: Chibi
|
||||||
image: schemers/chibi:head
|
image: schemers/chibi:head
|
||||||
stages:
|
stages:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue