2023-02-02 17:07:34 +01:00
|
|
|
node {
|
|
|
|
stage('Pull git') {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Build PDF') {
|
2023-02-02 18:13:37 +01:00
|
|
|
sh 'latexmk -c -xelatex -jobname=lsd-zf main.tex'
|
2023-02-02 17:07:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stage('Archive PDF') {
|
2023-02-02 18:13:37 +01:00
|
|
|
archiveArtifacts artifacts: 'lsd-zf.pdf', followSymlinks: false
|
2023-02-02 17:07:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stage('Publish PDF') {
|
2023-02-02 18:13:37 +01:00
|
|
|
cp 'lsd-zf.pdf /mnt/latex-previews/lsd-zf.pdf'
|
2023-02-02 17:07:34 +01:00
|
|
|
}
|
|
|
|
}
|