forked from garyluu/testWorkflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
57 lines (53 loc) · 2.24 KB
/
Jenkinsfile
File metadata and controls
57 lines (53 loc) · 2.24 KB
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
52
53
54
55
56
57
pipeline {
agent any
stages {
stage('Get dockstore CLI') {
steps {
deleteDir()
sh 'wget https://github.com/ga4gh/dockstore/releases/download/1.5.0-beta.4/dockstore'
sh 'chmod a+x dockstore'
}
}
stage('entry convert') {
steps {
parallel(
"entry convert": {
sh './dockstore workflow convert entry2json --entry github.com/HumanCellAtlas/skylab/HCA_SmartSeq2_wdl_checker:dockstore > Dockstore_converted.json'
},
"wget test parameter file": {
sh 'wget --header=\'Accept: text/plain\' https://staging.dockstore.org:443/api/api/ga4gh/v2/tools/%23workflow%2Fgithub.com%2FHumanCellAtlas%2Fskylab%2FHCA_SmartSeq2_wdl_checker/versions/dockstore/PLAIN_WDL/descriptor/dockstore_test_inputs.json -O Dockstore.json'
}
)
}
}
stage('launch') {
steps {
sh './dockstore workflow launch --entry github.com/HumanCellAtlas/skylab/HCA_SmartSeq2_wdl_checker:dockstore --json Dockstore.json'
sh './dockstore checker launch --entry github.com/HumanCellAtlas/skylab/HCA_SmartSeq2:dockstore --json Dockstore.json'
}
}
stage('entry convert parent') {
steps {
parallel(
"entry convert parent": {
sh './dockstore workflow convert entry2json --entry github.com/HumanCellAtlas/skylab/HCA_SmartSeq2:dockstore > Dockstore_converted.json'
},
"wget test parameter file": {
sh 'wget --header=\'Accept: text/plain\' https://staging.dockstore.org:443/api/api/ga4gh/v2/tools/%23workflow%2Fgithub.com%2FHumanCellAtlas%2Fskylab%2FHCA_SmartSeq2/versions/dockstore/PLAIN_WDL/descriptor/dockstore_SmartSeq2SingleSampleExample.json -O Dockstore.json'
}
)
}
}
stage('launch parent') {
steps {
sh './dockstore workflow launch --entry github.com/HumanCellAtlas/skylab/HCA_SmartSeq2:dockstore --json Dockstore.json'
}
}
stage('Cleanup') {
steps {
deleteDir()
cleanWs(cleanWhenAborted: true, cleanWhenFailure: true, cleanWhenNotBuilt: true, cleanWhenSuccess: true, cleanWhenUnstable: true, cleanupMatrixParent: true, deleteDirs: true)
}
}
}
}