All checks were successful
gitea/real_analysis/pipeline/head This commit looks good
28 lines
657 B
Groovy
28 lines
657 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
echo 'Starting build step...'
|
|
sh 'latexmk -pdf -outdir=out main_text.tex'
|
|
|
|
archiveArtifacts artifacts: 'out/main_text.pdf'
|
|
}
|
|
}
|
|
|
|
// 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 'cp out/main_text.pdf /var/www/zwietering.eu/pdfs/real_analysis.pdf'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
cleanup {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|