Add build pipeline
This commit is contained in:
parent
f3e5d72364
commit
7b540f457b
1 changed files with 19 additions and 0 deletions
19
Jenkinsfile
vendored
Normal file
19
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
node {
|
||||||
|
stage('Pull git') {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build PDF') {
|
||||||
|
sh 'latexmk -xelatex -jobname=lsd-exam main.tex'
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Archive PDF') {
|
||||||
|
archiveArtifacts artifacts: 'lsd-exam.pdf', followSymlinks: false
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Publish PDF') {
|
||||||
|
sh 'cp lsd-exam.pdf /mnt/latex-previews/lsd-exam.pdf'
|
||||||
|
}
|
||||||
|
|
||||||
|
cleanWs notFailBuild: true
|
||||||
|
}
|
Loading…
Reference in a new issue