Commit d4228c58 authored by Boris Baldassari's avatar Boris Baldassari
Browse files

Update Jenkinsfile_all to fix empty jobs.

parent a0d98859
......@@ -2,7 +2,7 @@ pipeline {
agent {
label 'ort-vm1'
}
options {
quietPeriod(2)
parallelsAlwaysFailFast()
......@@ -12,18 +12,21 @@ pipeline {
}
stages {
stage('Run all projects') {
stage('Hello') {
steps {
script {
sh (returnStdout: true, script: 'find /data/projects -mindepth 1 -maxdepth 1 -type d -exec basename {} \\;')
.trim()
.split('\n').each {
.trim()
.split('\n').each {
if ("${it}".trim()) {
println ">>> Triggering run_ort(${it})"
build quietPeriod: 1, job: 'run_ort', parameters: [string(name: 'PROJECT_ID', value: "${it}")]
}
}
}
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment