diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..8cd1228 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,19 @@ +node { + stage('Pull git') { + checkout scm + } + + stage('Build PDF') { + sh 'latexmk -xelatex -jobname=lsd-exam main.tex' + } + + stage('Archive PDF') { + archiveArtifacts artifacts: 'lsd-exam.pdf', followSymlinks: false + } + + stage('Publish PDF') { + sh 'cp lsd-exam.pdf /mnt/latex-previews/lsd-exam.pdf' + } + + cleanWs notFailBuild: true +} \ No newline at end of file