From 00544add999cd16c467bddd60019ee648c0e9097 Mon Sep 17 00:00:00 2001 From: retropikzel Date: Thu, 5 Jun 2025 22:30:55 +0300 Subject: [PATCH] Testing dynamic Jenkinsfile --- Jenkinsfile | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index da10ead..36d2c06 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,15 +1,4 @@ -def implementations = [ - 'chibi', - 'chicken', - 'gauche', - 'guile', - 'kawa', - 'mosh', - 'racket', - 'sagittarius', - 'stklos', - 'ypsilon' - ] +def tests = ['primitives'] pipeline { agent any @@ -20,16 +9,14 @@ pipeline { } stages { - stage('Testing') { + stage('chibi') { steps { script { - implementations.each { implementation -> - stage("Test ${implementation} primitives") { + tests.each { test -> catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh "docker build --build-arg COMPILE_R7RS=${implementation} --tag=r7rs-pffi-test-${implementation} -f Dockerfile.test ." - sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t r7rs-pffi-test-${implementation} sh -c \"make COMPILE_R7RS=${implementation} TESTNAME=primitives test-compile-r7rs\"" + sh "docker build --build-arg COMPILE_R7RS=${STAGE_NAME} --tag=r7rs-pffi-test-${STAGE_NAME} -f Dockerfile.test ." + sh "docker run -v ${WORKSPACE}:/workdir -w /workdir -t r7rs-pffi-test-${STAGE_NAME} sh -c \"make COMPILE_R7RS=${STAGE_NAME} TESTNAME=primitives test-compile-r7rs\"" } - } } } }