Commit 5700f1ad authored by Boris Baldassari's avatar Boris Baldassari
Browse files

Add Jenkins files.

parent 9e3fc1f2
pipeline {
agent {
label 'ort-vm1'
}
options {
quietPeriod(2)
parallelsAlwaysFailFast()
timeout(time: 168, unit: 'HOURS') // 1 week
buildDiscarder(logRotator(numToKeepStr: '16'))
disableConcurrentBuilds(abortPrevious: true)
}
stages {
stage('Run all projects') {
steps {
script {
sh (returnStdout: true, script: 'find /data/projects -mindepth 1 -maxdepth 1 -type d -exec basename {} \\;')
.trim()
.split('\n').each {
println ">>> Triggering run_ort(${it})"
build quietPeriod: 1, job: 'run_ort', parameters: [string(name: 'PROJECT_ID', value: "${it}")]
}
}
}
}
}
}
pipeline {
agent {
label 'ort-vm1'
}
options {
quietPeriod(2)
parallelsAlwaysFailFast()
timeout(time: 168, unit: 'HOURS') // 1 week
buildDiscarder(logRotator(numToKeepStr: '16'))
disableConcurrentBuilds(abortPrevious: true)
}
stages {
stage('Run project') {
steps {
script {
echo "Executing analysis on project ${PROJECT_ID}."
sh '''
for p in /data/projects/${PROJECT_ID}/*; do
r=$(basename $p)
bash /ort/eclipsefdn-ort/scripts/run_ort.sh /data/projects/${PROJECT_ID}/ $r /data/results/
done
bash /ort/eclipsefdn-ort/scripts/run_extract.sh
'''
}
}
}
}
}
}
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