forked from hemberg-lab/scRNA.seq.course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
37 lines (37 loc) · 772 Bytes
/
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
pipeline {
agent any
stages {
stage('Clean up old stuff') {
steps {
sh '''# Delete old Docker containers and images
docker rm -f $(docker ps -a -q)
docker rmi -f $(docker images -q)'''
}
}
stage('Run Docker') {
steps {
sh 'docker run quay.io/hemberg-group/scrna-seq-course:latest'
}
}
stage('Copy from Docker') {
steps {
sh '''# copy files from the docker
alias dl=\'docker ps -l -q\'
docker cp `dl`:/home/rstudio/_book $WORKSPACE/tmp1
cp -r tmp1/* docs'''
}
}
stage('Commit changes') {
steps {
sh '''# commit changes
git add docs/*
git commit -m "update the course website"
git push origin HEAD:master
'''
}
}
}
triggers {
cron('H 14 * * *')
}
}