Skip to content

Commit

Permalink
[lldb] Put a timeout around checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
JDevlieghere committed Dec 11, 2019
1 parent 622b3ed commit 5e6a628
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 26 deletions.
12 changes: 7 additions & 5 deletions zorg/jenkins/jobs/jobs/lldb-cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ pipeline {
stages {
stage('Checkout') {
steps {
dir('llvm-project') {
checkout([$class: 'GitSCM', branches: [[name: params.GIT_REVISION]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
dir('llvm-zorg') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-zorg.git']]])
timeout(30) {
dir('llvm-project') {
checkout([$class: 'GitSCM', branches: [[name: params.GIT_REVISION]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
dir('llvm-zorg') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-zorg.git']]])
}
}
}
}
Expand Down
30 changes: 19 additions & 11 deletions zorg/jenkins/jobs/jobs/lldb-cmake-matrix
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ pipeline {
stages {
stage('Checkout') {
steps {
dir('llvm-project') {
checkout([$class: 'GitSCM', branches: [[name: params.GIT_REVISION]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
dir('llvm-zorg') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-zorg.git']]])
timeout(30) {
dir('llvm-project') {
checkout([$class: 'GitSCM', branches: [[name: params.GIT_REVISION]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
dir('llvm-zorg') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-zorg.git']]])
}
}
}
}
Expand Down Expand Up @@ -132,8 +134,10 @@ pipeline {
}
stage('Build Clang 5.0.2') {
steps {
dir('clang_502') {
checkout([$class: 'GitSCM', branches: [[name: "llvmorg-5.0.2"]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
timeout(30) {
dir('clang_502') {
checkout([$class: 'GitSCM', branches: [[name: "llvmorg-5.0.2"]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
}
timeout(90) {
sh '''
Expand Down Expand Up @@ -176,8 +180,10 @@ pipeline {
}
stage('Build Clang 7.0.1') {
steps {
dir('clang_701') {
checkout([$class: 'GitSCM', branches: [[name: "llvmorg-7.0.1"]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
timeout(30) {
dir('clang_701') {
checkout([$class: 'GitSCM', branches: [[name: "llvmorg-7.0.1"]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
}
timeout(90) {
sh '''
Expand Down Expand Up @@ -220,8 +226,10 @@ pipeline {
}
stage('Build Clang 9.0.0') {
steps {
dir('clang_900') {
checkout([$class: 'GitSCM', branches: [[name: "llvmorg-9.0.0"]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
timeout(30) {
dir('clang_900') {
checkout([$class: 'GitSCM', branches: [[name: "llvmorg-9.0.0"]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
}
timeout(90) {
sh '''
Expand Down
12 changes: 7 additions & 5 deletions zorg/jenkins/jobs/jobs/lldb-cmake-sanitized
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ pipeline {
stages {
stage('Checkout') {
steps {
dir('llvm-project') {
checkout([$class: 'GitSCM', branches: [[name: params.GIT_REVISION]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
dir('llvm-zorg') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-zorg.git']]])
timeout(30) {
dir('llvm-project') {
checkout([$class: 'GitSCM', branches: [[name: params.GIT_REVISION]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
dir('llvm-zorg') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-zorg.git']]])
}
}
}
}
Expand Down
12 changes: 7 additions & 5 deletions zorg/jenkins/jobs/jobs/lldb-cmake-standalone
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ pipeline {
stages {
stage('Checkout') {
steps {
dir('llvm-project') {
checkout([$class: 'GitSCM', branches: [[name: params.GIT_REVISION]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
dir('llvm-zorg') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-zorg.git']]])
timeout(30) {
dir('llvm-project') {
checkout([$class: 'GitSCM', branches: [[name: params.GIT_REVISION]], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-project.git']]])
}
dir('llvm-zorg') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'http://labmaster3.local/git/llvm-zorg.git']]])
}
}
}
}
Expand Down

0 comments on commit 5e6a628

Please sign in to comment.