From 866bf512a222d0fbe1e366ee7a4d23d452772585 Mon Sep 17 00:00:00 2001 From: retropikzel Date: Thu, 5 Jun 2025 22:58:46 +0300 Subject: [PATCH] Testing dynamic Jenkinsfile --- Jenkinsfile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 37e5d0c..0f4c154 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,9 +15,17 @@ pipeline { script { implementations.each { implementation -> stage("${implementation} primitives") { - catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh "docker build --build-arg COMPILE_R7RS=${implementation} --tag=r7rs-pffi-test-${implementation} -f Dockerfile.test ." - sh "docker run --user=root -v ${WORKSPACE}:/workdir -w /workdir -t r7rs-pffi-test-${implementation} sh -c \"make COMPILE_R7RS=${implementation} TESTNAME=primitives test-compile-r7rs\"" + agent { + dockerfile { + filename 'Dockerfile.test' + args '--user=root' + additionalBuildArgs "--build-arg COMPILE_R7RS=${implementation}" + } + } + steps { + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + echo "hello" + } } } }