first commit
This commit is contained in:
16
Jenkinsfile
vendored
Executable file
16
Jenkinsfile
vendored
Executable file
@@ -0,0 +1,16 @@
|
||||
pipeline {
|
||||
agent { docker { image 'pandoc/latex' } }
|
||||
stages {
|
||||
stage('generate epub') {
|
||||
steps {
|
||||
sh 'pandoc --toc --toc-depth=1 --epub-metadata=metadata.yaml --css=book.css -o myebook.epub'
|
||||
sh 'pandoc --css book.css --toc -N -o build/output.epub src/title.txt src/*.md'
|
||||
}
|
||||
}
|
||||
stage('deploy book') {
|
||||
steps {
|
||||
sh 'cp myebook.epub /var/www/zerp/'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user