forked from C2SM/spack-c2sm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
51 lines (51 loc) · 2.03 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
47
48
49
50
51
pipeline {
agent none
stages {
stage('Run Tests') {
parallel {
stage('test on tsa') {
agent { label 'tsa' }
steps {
sh """
module load python/3.7.4
python test_spack.py --tsa """ + env.ghprbCommentBody
}
post {
always {
withCredentials([string(credentialsId: 'd976fe24-cabf-479e-854f-587c152644bc', variable: 'GITHUB_AUTH_TOKEN')]) {
sh"""
module load python/3.7.4
python send_summary_as_comment_to_PR.py
"""
}
archiveArtifacts artifacts: '*.log', allowEmptyArchive: true
echo 'Cleaning up workspace'
deleteDir()
}
}
}
stage('test on daint') {
agent { label 'daint' }
steps {
sh """
module load cray-python
python test_spack.py --daint """ + env.ghprbCommentBody
}
post {
always {
withCredentials([string(credentialsId: 'd976fe24-cabf-479e-854f-587c152644bc', variable: 'GITHUB_AUTH_TOKEN')]) {
sh"""
module load cray-python
python send_summary_as_comment_to_PR.py
"""
}
archiveArtifacts artifacts: '*.log', allowEmptyArchive: true
echo 'Cleaning up workspace'
deleteDir()
}
}
}
}
}
}
}