-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathJenkinsfile
34 lines (33 loc) · 1.04 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
pipeline {
agent {
node {label 'bare-metal' }
}
stages {
stage('Build') {
steps {
sh 'mkdir -p CWL/Data/Baseline'
sh 'mkdir -p CWL/Data/Outputs'
sh 'docker build -t mgrast/pipeline:testing .'
sh 'Setup/check-and-load-docker-volume.sh'
// sh 'CWL/Inputs/DBs/getpredata.sh CWL/Inputs/DBs/'
}
}
stage('Test') {
steps {
sh 'docker run -t --rm -e CREATE_BASELINE=1 -v `pwd`:/pipeline -v pipeline-pre-data:/pipeline/CWL/Inputs/DBs mgrast/pipeline:testing /pipeline/CWL/Tests/testWorkflows.py -v'
}
}
}
post {
always {
// shutdown container and network
sh '''
set +e
docker stop mgrast/pipeline:testing
docker rmi mgrast/pipeline:testing
set -e
echo Cleanup done
'''
}
}
}