forked from firedrakeproject/petsc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
46 lines (44 loc) · 1.27 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env groovy
def alljob = JOB_NAME.tokenize('/') as String[]
def node_name = alljob[0]
def arch_name = alljob[1]
pipeline {
agent {
node {
label node_name
customWorkspace "${arch_name}/${BRANCH_NAME}"
}
}
stages {
stage('Local Merge') {
steps {
echo "Current dir: ${pwd()}"
echo "Workspace variable: ${WORKSPACE}"
echo "Running on node: ${node_name}"
echo "Building for arch: ${arch_name}"
checkout scm
}
}
stage('Configure') {
steps {
sh "python ./config/examples/${arch_name}.py"
}
}
stage('Make') {
steps {
sh "make PETSC_ARCH=${arch_name} PETSC_DIR=${WORKSPACE} all"
}
}
stage('Examples') {
steps {
sh "make PETSC_ARCH=${arch_name} PETSC_DIR=${WORKSPACE} cleantest allgtest-tap TIMEOUT=300"
}
post {
always {
junit "**/${arch_name}/tests/testresults.xml"
sh "make PETSC_ARCH=${arch_name} PETSC_DIR=${WORKSPACE} cleantest"
}
}
}
}
}