-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_conda_root_pipelines
35 lines (35 loc) · 1.39 KB
/
test_conda_root_pipelines
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
pipeline {
agent {
label 'lcg_docker_cc7'
}
options { timestamps() }
stages {
stage('Create docker container') {
steps {
sh 'docker run -t --detach --name testconda quay.io/condaforge/linux-anvil-cos7-cuda:10.2'
}
}
stage('Test conda release') {
steps {
sh 'git clone --quiet --depth 1 https://gitlab.cern.ch/eguiraud/conda_root.git'
sh 'docker cp conda_root/install_conda_root.sh testconda:.'
sh 'docker cp conda_root/test_conda_root.sh testconda:.'
sh 'docker exec -t testconda bash -i install_conda_root.sh'
sh 'docker exec -e JOB_DIR=/test_job -t testconda bash -i test_conda_root.sh'
}
}
stage('Publish test results') {
steps {
sh 'rm -rf ctest_output && docker cp testconda:test_job/ctest_output ctest_output'
xunit thresholds: [failed(failureNewThreshold: '0', failureThreshold: '14', unstableNewThreshold: '0', unstableThreshold: '13')], tools: [CTest(deleteOutputFiles: true, failIfNotNew: true, pattern: 'ctest_output/*/*.xml', skipNoTestFiles: false, stopProcessingIfError: true)]
}
}
}
post {
always {
echo 'Cleaning up!'
sh 'docker rm -f testconda'
sh 'rm -rf conda_root'
}
}
}