Skip to content

Commit

Permalink
[Jenkins] Fixed clang job.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Sep 23, 2016
1 parent 8618cfb commit 0aeb1e5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/jenkins/clang.groovy
@@ -1,7 +1,12 @@
node('docker') {
def configure = load 'scripts/jenkins/lib/configure.groovy'
def build = load 'scripts/jenkins/lib/build.groovy'
def post = load 'scripts/jenkins/lib/post.groovy'
stage 'Checkout (Clang)'
dir('ogs') {
checkout scm

configure = load 'scripts/jenkins/lib/configure.groovy'
build = load 'scripts/jenkins/lib/build.groovy'
post = load 'scripts/jenkins/lib/post.groovy'
}

def defaultDockerArgs = '-v /home/jenkins/.ccache:/usr/src/.ccache'
def defaultCMakeOptions =
Expand All @@ -11,9 +16,6 @@ node('docker') {
'-DOGS_UNDEFINED_BEHAVIOR_SANITIZER=ON ' +
'-DOGS_BUILD_UTILS=ON'

stage 'Checkout (Clang)'
dir('ogs') { checkout scm }

docker.image('ogs6/clang-base:latest').inside(defaultDockerArgs) {
stage 'Configure (Clang)'
configure.linux 'build', "${defaultCMakeOptions}"
Expand Down

0 comments on commit 0aeb1e5

Please sign in to comment.