Testing dynamic Jenkinsfile
This commit is contained in:
parent
15980724d4
commit
29b166eca8
|
|
@ -1,24 +1,27 @@
|
||||||
|
def implementations = ['chibi']
|
||||||
def tests = ['primitives']
|
def tests = ['primitives']
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
dockerfile {
|
dockerfile {
|
||||||
filename 'Dockerfile.jenkins'
|
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 {
|
options {
|
||||||
disableConcurrentBuilds()
|
disableConcurrentBuilds()
|
||||||
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('chibi') {
|
stage('Testing') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
for (int i = 0; i < tests.size(); ++i) {
|
implementations.each { implementations ->
|
||||||
echo "Testing the ${test[i]}"
|
stage("Testing to ${implementation}") {
|
||||||
|
echo "Testing"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue