Testing dynamic Jenkinsfile
This commit is contained in:
parent
6a8bff28a4
commit
c73213535b
|
|
@ -10,18 +10,18 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Testing') {
|
stage('chibi') {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
filename 'Dockerfile.test'
|
||||||
|
args '--user=root'
|
||||||
|
additionalBuildArgs "--build-arg COMPILE_R7RS=${STAGE_NAME}"
|
||||||
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
implementations.each { implementation ->
|
tests.each { test ->
|
||||||
agent {
|
stage("${STAGE_NAME} ${test}") {
|
||||||
dockerfile {
|
|
||||||
filename 'Dockerfile.test'
|
|
||||||
args '--user=root'
|
|
||||||
additionalBuildArgs "--build-arg COMPILE_R7RS=${implementation}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage("${implementation} primitives") {
|
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
echo "hello"
|
echo "hello"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue