commit 8e4b52b9883d3f33e95363ae991aff56cfd29f94 parent 678483d5de8fe54f7b6c7fff475822446c509be9 Author: Andreas Gruhler <andreas.gruhler@adfinis.com> Date: Fri, 23 Aug 2024 16:44:14 +0200 feat: add Jenkinsfile Diffstat:
M | .gitignore | | | 1 | + |
A | Jenkinsfile | | | 20 | ++++++++++++++++++++ |
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -4,3 +4,4 @@ **.log **.out **.pdf +**.swp diff --git a/Jenkinsfile b/Jenkinsfile @@ -0,0 +1,20 @@ +@Library('in0rdr-jenkins-lib@master') _ + +node('podman'){ + checkout scm + + stage('build-pdf') { + docker.image('docker.io/leplusorg/latex:latest').inside('-u latex --entrypoint=""') { + sh ''' + which latexmk + latexmk -c + latexmk -pdflua main.tex + ''' + } + } + post { + always { + archiveArtifacts artifacts: 'main.pdf', fingerprint: true + } + } +}