ats-zf/Jenkinsfile
2021-08-23 09:52:06 +02:00

17 lines
No EOL
452 B
Groovy

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