mathematik-v-zf/Jenkinsfile

22 lines
545 B
Groovy

node {
stage('Empty workspace') {
sh 'rm -rd *'
}
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'
}
}