From 7b540f457b0ad86ffc577abc4333bcf2a6b73e4f Mon Sep 17 00:00:00 2001 From: Jannis Portmann Date: Tue, 7 Feb 2023 18:45:50 +0100 Subject: [PATCH] Add build pipeline --- Jenkinsfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Jenkinsfile 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