New builds
This commit is contained in:
parent
b8921f60f0
commit
2f1f7e9b59
|
|
@ -21,25 +21,20 @@ pipeline {
|
||||||
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def config = readYaml file: 'buildconfig.yaml'
|
def builds = readYaml file: 'buildconfig.yaml'
|
||||||
config.schemes.each { scheme ->
|
builds.each { build ->
|
||||||
stage("${scheme.name}") {
|
stage("${build.name}") {
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image "schemers/${scheme}:${scheme.docker-tag}"
|
image "build.image"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
environment {
|
build.stages.each { stage ->
|
||||||
COMPILE_R7RS="${scheme.scheme}"
|
stage("${stage.name}") {
|
||||||
SCHEME="${scheme.scheme}"
|
|
||||||
}
|
|
||||||
scheme.stages.each { stage ->
|
|
||||||
stage("${stage}") {
|
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh "${stage.cmd}"
|
sh "${stage.cmd}"
|
||||||
}
|
}
|
||||||
|
|
@ -51,6 +46,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
cleanWs()
|
cleanWs()
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
schemes:
|
builds:
|
||||||
- name: Chibi
|
- name: Chibi
|
||||||
scheme: chibi
|
image: schemers/chibi:head
|
||||||
docker-tag: head
|
stages:
|
||||||
init-cmd: |
|
- name: Init
|
||||||
|
cmd: |
|
||||||
apt-get update && apt-get install -y git ca-certificates gcc make libffi-dev
|
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
|
git clone https://github.com/ashinn/chibi-scheme.git --depth=1
|
||||||
make -j8 -C chibi-scheme
|
make -j8 -C chibi-scheme
|
||||||
make -j8 -C chibi-scheme install
|
make -j8 -C chibi-scheme install
|
||||||
snow-chibi install retropikzel.compile-r7rs
|
snow-chibi install retropikzel.compile-r7rs
|
||||||
stages:
|
|
||||||
- name: tap
|
- name: tap
|
||||||
cmd: compile-r7rs -o tap retropikzel/tap/test.scm && ./tap
|
cmd: compile-r7rs -o tap retropikzel/tap/test.scm && ./tap
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue