JenkinsFile_run_ort 666 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
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  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}."
Boris Baldassari's avatar
Boris Baldassari committed
20
          sh '''
Boris Baldassari's avatar
Boris Baldassari committed
21
22
23
24
25
26
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
Boris Baldassari's avatar
Boris Baldassari committed
27
          '''
Boris Baldassari's avatar
Boris Baldassari committed
28
29
30
31
32
33
        }
      }
    }
  }
}