Add Jenkinsfile

This commit is contained in:
jannisp 2021-08-11 10:55:16 +02:00
parent a9336daad5
commit ac772d1cbc

17
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,17 @@
node {
stage('Pull git') {
checkout scm
}
stage('Build PDF') {
sh 'pdflatex *.tex'
}
stage('Archive PDF') {
archiveArtifacts artifacts: '*.pdf', followSymlinks: false
}
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'
}
}