mathematik-v-zf/Jenkinsfile
2021-08-30 13:40:55 +02:00

17 lines
485 B
Groovy

node {
stage('Pull git') {
checkout scm
}
stage('Build PDF') {
sh 'latexmk -c -xelatex -jobname=mathematik-v-zf Mathematik-V-ZF.tex'
}
stage('Archive PDF') {
archiveArtifacts artifacts: 'mathematik-v-zf.pdf', followSymlinks: false
}
stage('Publish PDF') {
sh 'scp -i /root/.ssh/id_rsa mathematik-v-zf.pdf thisfro@192.168.178.45:/opt/containers/apache2/html/download/latex-previews/mathematik-v-zf.pdf'
}
}