Add Jenkinsfile
This commit is contained in:
parent
0d34ad01d0
commit
5f162223e9
1 changed files with 17 additions and 0 deletions
17
Jenkinsfile
vendored
Normal file
17
Jenkinsfile
vendored
Normal 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/mathematik-v-zf.pdf'
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue