diff --git a/Jenkinsfile b/Jenkinsfile index 54e3faf..ed79c2b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,12 +14,16 @@ pipeline { script { //def implementations = sh(script: 'docker run retropikzel1/compile-r7rs:chibi sh -c "compile-r7rs --list-r7rs-schemes"', returnStdout: true).split() def implementations = "chibi chicken gauche guile kawa mosh racket sagittarius stklos ypsilon".split() - def DOCKERIMG = sh(script: 'make docker-image', returnStdout: true) parallel implementations.collectEntries { implementation-> [(implementation): { stage("${implementation} install") { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + if("${SCHEME}" == "chicken") { + DOCKERIMG="${SCHEME}:5" + } else { + DOCKERIMG="${SCHEME}:head" + } sh "docker build --build-arg IMAGE=${DOCKERIMG} --build-arg SCHEME=${implementation} --tag=foreign-c-test-${implementation} -f dockerfiles/Dockerfile.snow-chibi-install-test ." sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t foreign-c-test-${implementation} sh -c \"timeout 120 make clean all install-jenkins SCHEME=${implementation} && cp tests/hello.scm /tmp/ && cd /tmp && SCHEME=${implementation} timeout 120 compile-r7rs -o hello hello.scm && timeout 120 ./hello\"" }