pipeline { agent any stages { stage('Build') { steps { echo 'Starting build step...' sh 'latexmk -pdf -outdir=out main_text.tex' } } // Testing latex isn't really a thing, but we could do basic sanity checks in the future? stage('Deploy') { steps{ echo 'Starting deploy step...' sh 'sudo cp out/main_text.pdf /var/www/zwietering.eu/pdfs/real_analysis.pdf' } } } post { cleanup { cleanWs() } } }