ats-zf/Jenkinsfile

17 lines
405 B
Text
Raw Normal View History

2021-08-11 10:55:16 +02:00
node {
stage('Pull git') {
checkout scm
}
stage('Build PDF') {
2021-08-11 11:07:11 +02:00
sh 'pdflatex -jobname=ats-zf main.tex'
2021-08-11 10:55:16 +02:00
}
stage('Archive PDF') {
2021-08-11 11:07:11 +02:00
archiveArtifacts artifacts: 'ats-zf.pdf', followSymlinks: false
2021-08-11 10:55:16 +02:00
}
stage('Publish PDF') {
sh 'scp -i /root/.ssh/id_rsa *.pdf jannis@192.168.178.45:/var/www/html/download/latex-previews/ats-zf.pdf'
}
}