JenkinsFile_run_all 752 Bytes
Newer Older
Boris Baldassari's avatar
Boris Baldassari committed
1
pipeline {
Boris Baldassari's avatar
Boris Baldassari committed
2

Boris Baldassari's avatar
Boris Baldassari committed
3
4
5
  agent {
    label 'ort-vm1'
  }
6
    
Boris Baldassari's avatar
Boris Baldassari committed
7
8
9
10
11
12
13
14
15
  options {
    quietPeriod(2)
    parallelsAlwaysFailFast()
    timeout(time: 168, unit: 'HOURS') // 1 week
    buildDiscarder(logRotator(numToKeepStr: '16'))
    disableConcurrentBuilds(abortPrevious: true)
  }

  stages {
16
    stage('Hello') {
Boris Baldassari's avatar
Boris Baldassari committed
17
18
19
      steps {
        script {
          sh (returnStdout: true, script: 'find /data/projects -mindepth 1 -maxdepth 1 -type d -exec basename {} \\;')
20
21
22
          .trim()
          .split('\n').each { 
            if ("${it}".trim()) {
Boris Baldassari's avatar
Boris Baldassari committed
23
24
25
              println ">>> Triggering run_ort(${it})" 
              build quietPeriod: 1, job: 'run_ort', parameters: [string(name: 'PROJECT_ID', value: "${it}")]
            }
26
          }
Boris Baldassari's avatar
Boris Baldassari committed
27
28
29
30
31
32
        }
      }
    }
  }
}

33