forked from nf-core/rnafusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
40 lines (37 loc) · 1.3 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
pipeline {
agent any
environment {
NXF_VER = '0.32.0'
JENKINS_API = credentials('api')
}
stages {
stage('Setup environment') {
steps {
sh "pip install nf-core"
sh "docker pull nfcore/rnafusion:dev"
sh "docker tag nfcore/rnafusion:dev nfcore/rnafusion:1.0.1"
}
}
stage('Lint markdown') {
steps {
sh "markdownlint $WORKSPACE -c $WORKSPACE/.github/markdownlint.yml"
}
}
stage('Build') {
steps {
// sh "nextflow run kraken,jenkins nf-core/rnafusion"
sh "nextflow run nf-core/rnafusion -r dev --help"
sh "nextflow run nf-core/rnafusion/download-references.nf -r dev --help"
sh "nextflow run nf-core/rnafusion/download-singularity-img.nf -r dev --help"
}
}
}
post {
failure {
script {
def response = sh(script: "curl -u ${JENKINS_API_USR}:${JENKINS_API_PSW} ${BUILD_URL}/consoleText", returnStdout: true).trim().replace('\n', '<br>')
def comment = pullRequest.comment("##:rotating_light: Buil log output:<br><summary><details>${response}</details></summary>")
}
}
}
}