Use jobname

This commit is contained in:
jannisp 2021-08-30 13:40:55 +02:00
parent 699684a1f1
commit c9754a3049

6
Jenkinsfile vendored
View file

@ -4,14 +4,14 @@ node {
}
stage('Build PDF') {
sh 'latexmk -c -xelatex Mathematik-V-ZF.tex'
sh 'latexmk -c -xelatex -jobname=mathematik-v-zf Mathematik-V-ZF.tex'
}
stage('Archive PDF') {
archiveArtifacts artifacts: 'Mathematik-V-ZF.pdf', followSymlinks: false
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'
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'
}
}