Testing dynamic Jenkinsfile

This commit is contained in:
retropikzel 2025-06-05 23:06:32 +03:00
parent fb48f87cc6
commit 9b57e6b008
1 changed files with 5 additions and 2 deletions

7
Jenkinsfile vendored
View File

@ -17,12 +17,15 @@ pipeline {
additionalBuildArgs "--build-arg COMPILE_R7RS=${STAGE_NAME}" additionalBuildArgs "--build-arg COMPILE_R7RS=${STAGE_NAME}"
} }
} }
environment {
IMPLEMENTATION="${STAGE_NAME}"
}
steps { steps {
script { script {
tests.each { test -> tests.each { test ->
stage("${STAGE_NAME} ${test}") { stage("${env.IMPLEMENTATION} ${test}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "make test-compile-r7rs COMPILE_R7RS=${ṢTAGE_NAME} TESTNAME=${test}" sh "make test-compile-r7rs COMPILE_R7RS=${env.IMPLEMENTATION} TESTNAME=${test}"
} }
} }
} }