cv-bubble

Personal PDF CV, fork of github.com/mateuszbaransanok/BubbleCV
git clone https://git.in0rdr.ch/cv-bubble.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

Jenkinsfile (797B)


      1 @Library('in0rdr-jenkins-lib@master') _
      2 
      3 node('podman'){
      4   checkout scm
      5 
      6   try {
      7     stage('build-pdf') {
      8       docker.image('docker.io/mfisherman/texlive-full:latest')
      9       .inside('-u root --entrypoint=""') {
     10         sh '''
     11         latexmk -c
     12         latexmk -pdf main.tex
     13         '''
     14       }
     15     }
     16   } catch (e) {
     17     // Since we're catching the exception in order to report on it,
     18     // we need to re-throw it, to ensure that the build is marked as failed
     19     throw e
     20   } finally {
     21     // create pdf artifacts if build was successful
     22     // https://www.jenkins.io/doc/pipeline/tour/running-multiple-steps/#finishing-up
     23     def currentResult = currentBuild.result ?: 'SUCCESS'
     24     if (currentResult == "SUCCESS") {
     25       archiveArtifacts artifacts: 'main.pdf', fingerprint: true
     26     }
     27   }
     28 }