diff --git a/Jenkinsfile b/Jenkinsfile index 0826111..f33fd79 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,15 +26,15 @@ pipeline { steps { script { def config = readYaml file: 'builds.yaml' - config.each { build -> - stage("WIP") { + config.builds.each { build -> + stage("${build.name}") { agent { docker { image "${build.image}" } } config.stages.each { stage -> - stage("WIP") { + stage("${stage.name}") { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { sh "${stage.cmd}" } diff --git a/builds.yaml b/builds.yaml index eb27fb0..01b6aac 100644 --- a/builds.yaml +++ b/builds.yaml @@ -1,14 +1,15 @@ -- name: Chibi - image: schemers/chibi:head - stages: - - name: Init - cmd: | - apt-get update && apt-get install -y git ca-certificates gcc make libffi-dev - git clone https://github.com/ashinn/chibi-scheme.git --depth=1 - make -j8 -C chibi-scheme - make -j8 -C chibi-scheme install - snow-chibi install retropikzel.compile-r7rs - - name: tap - cmd: compile-r7rs -o tap retropikzel/tap/test.scm && ./tap +builds: + - name: Chibi + image: schemers/chibi:head + stages: + - name: Init + cmd: | + apt-get update && apt-get install -y git ca-certificates gcc make libffi-dev + git clone https://github.com/ashinn/chibi-scheme.git --depth=1 + make -j8 -C chibi-scheme + make -j8 -C chibi-scheme install + snow-chibi install retropikzel.compile-r7rs + - name: tap + cmd: compile-r7rs -o tap retropikzel/tap/test.scm && ./tap