Testing dynamic Jenkinsfile
This commit is contained in:
parent
2f1e8f55aa
commit
866bf512a2
|
|
@ -15,9 +15,17 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
implementations.each { implementation ->
|
implementations.each { implementation ->
|
||||||
stage("${implementation} primitives") {
|
stage("${implementation} primitives") {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
filename 'Dockerfile.test'
|
||||||
|
args '--user=root'
|
||||||
|
additionalBuildArgs "--build-arg COMPILE_R7RS=${implementation}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh "docker build --build-arg COMPILE_R7RS=${implementation} --tag=r7rs-pffi-test-${implementation} -f Dockerfile.test ."
|
echo "hello"
|
||||||
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\""
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue