Add build pipeline

This commit is contained in:
Jannis Portmann 2023-02-07 18:45:50 +01:00
parent f3e5d72364
commit 7b540f457b

19
Jenkinsfile vendored Normal file
View 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
}