Testing dynamic Jenkinsfile

This commit is contained in:
retropikzel 2025-06-05 23:19:21 +03:00
parent d04692fdd4
commit 4d838e4b4a
1 changed files with 5 additions and 5 deletions

10
Jenkinsfile vendored
View File

@ -4,10 +4,10 @@ def tests = ['primitives', 'addressof', 'callback']
pipeline {
agent any
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
}
stages {
stage('Tests') {
@ -18,7 +18,7 @@ pipeline {
stage("${STAGE_NAME} ${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 run -v ${WORKSPACE}:/workdir -w /workdir -t r7rs-pffi-test-${implementation} sh -c \"make COMPILE_R7RS=${implementation} TESTNAME=primitives test-compile-r7rs\""
}
}
}