Testing dynamic Jenkinsfile

This commit is contained in:
retropikzel 2025-06-05 22:37:27 +03:00
parent 15980724d4
commit 29b166eca8
1 changed files with 8 additions and 5 deletions

13
Jenkinsfile vendored
View File

@ -1,24 +1,27 @@
def implementations = ['chibi']
def tests = ['primitives']
pipeline {
agent {
dockerfile {
filename 'Dockerfile.jenkins'
args '--user=root -v /var/run/docker.sock:/var/run/docker.sock'
args '--user=root -v /var/run/docker.sock:/var/run/docker.sock'
}
}
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
}
stages {
stage('chibi') {
stage('Testing') {
steps {
script {
for (int i = 0; i < tests.size(); ++i) {
echo "Testing the ${test[i]}"
implementations.each { implementations ->
stage("Testing to ${implementation}") {
echo "Testing"
}
}
}
}