mathematik-v-zf/Jenkinsfile

22 lines
545 B
Text
Raw Normal View History

2021-08-11 10:54:26 +02:00
node {
2021-08-30 13:46:35 +02:00
stage('Empty workspace') {
sh 'rm -rd *'
}
2021-08-11 10:54:26 +02:00
stage('Pull git') {
checkout scm
}
stage('Build PDF') {
2021-08-30 13:40:55 +02:00
sh 'latexmk -c -xelatex -jobname=mathematik-v-zf Mathematik-V-ZF.tex'
2021-08-11 10:54:26 +02:00
}
stage('Archive PDF') {
2021-08-30 13:40:55 +02:00
archiveArtifacts artifacts: 'mathematik-v-zf.pdf', followSymlinks: false
2021-08-11 10:54:26 +02:00
}
stage('Publish PDF') {
2021-08-30 13:40:55 +02:00
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'
2021-08-11 10:54:26 +02:00
}
2021-08-23 15:00:58 +02:00
}