Testing dynamic Jenkinsfile

This commit is contained in:
retropikzel 2025-06-05 21:59:04 +03:00
parent 0375825e4b
commit f5c7df111f
1 changed files with 5 additions and 16 deletions

21
Jenkinsfile vendored
View File

@ -1,15 +1,4 @@
def implementations = [ def tests = ['primitives']
'chibi',
'chicken',
'gauche',
'guile',
'kawa',
'mosh',
'racket',
'sagittarius',
'stklos',
'ypsilon'
]
pipeline { pipeline {
agent { agent {
@ -25,13 +14,13 @@ pipeline {
} }
stages { stages {
stage('Testing') { stage('Chibi') {
steps { steps {
script { script {
implementations.each { implementation -> tests.each { test ->
stage("Test ${implementation} primitives") { stage("Test ${ṢTAGE_NAME} primitives") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "make test-compile-r7rs-docker COMPILE_R7RS=${implementation} TESTNAME=primitives" sh "make test-compile-r7rs COMPILE_R7RS=${STAGE_NAME} TESTNAME=${test}"
} }
} }
} }