Compare commits

...

9 Commits

Author SHA1 Message Date
23c5c26472 Artifacts opslaan
All checks were successful
gitea/real_analysis/pipeline/head This commit looks good
2026-01-22 23:43:59 +01:00
b27c0d1872 Geen sudo meer nodig
Some checks failed
gitea/real_analysis/pipeline/head There was a failure building this commit
2026-01-22 23:41:42 +01:00
b92d0a5a97 Smerige sudo
Some checks failed
gitea/real_analysis/pipeline/head There was a failure building this commit
2026-01-22 23:35:56 +01:00
7fbca3031a Poging om jenkins uit het slop te trekken
Some checks failed
gitea/real_analysis/pipeline/head There was a failure building this commit
2026-01-22 23:33:21 +01:00
12ba818631 Fix on template
Some checks failed
gitea/real_analysis/pipeline/head There was a failure building this commit
2025-11-21 10:15:10 +01:00
bc10cf8736 https ipv ssh voor de buildserver
Some checks failed
gitea/real_analysis/pipeline/head There was a failure building this commit
2025-11-16 00:50:32 +01:00
83c9218b81 Vieze workspace
Some checks failed
gitea/real_analysis/pipeline/head There was a failure building this commit
2025-11-16 00:45:26 +01:00
a7ec28cf5c Overbodig build script nu
Some checks failed
gitea/real_analysis/pipeline/head There was a failure building this commit
2025-11-16 00:37:06 +01:00
9ea1970fcf Fixed submodule 2025-11-16 00:36:47 +01:00
3 changed files with 9 additions and 41 deletions

15
Jenkinsfile vendored
View File

@@ -2,15 +2,11 @@ pipeline {
agent any agent any
stages { stages {
stage('Build') { stage('Build') {
agent {
docker {
image 'kjarosh/latex:2025.1'
reuseNode true
}
}
steps { steps {
echo 'Starting build step...' echo 'Starting build step...'
sh 'latexmk -pdf -outdir=out main_text.tex' sh 'latexmk -pdf -outdir=out main_text.tex'
archiveArtifacts artifacts: 'out/main_text.pdf'
} }
} }
@@ -19,8 +15,13 @@ pipeline {
stage('Deploy') { stage('Deploy') {
steps{ steps{
echo 'Starting deploy step...' echo 'Starting deploy step...'
sh 'cp assignments/main_text.pdf /var/www/zwietering.eu/pdfs/real_analysis.pdf' sh 'cp out/main_text.pdf /var/www/zwietering.eu/pdfs/real_analysis.pdf'
} }
} }
} }
post {
cleanup {
cleanWs()
}
}
} }

View File

@@ -1,33 +0,0 @@
#!/bin/bash
# Build all directories
subdirectory_file_name=main
cd assignments
for D in *; do
if [ "${D}" != "template" ] && [ -d "${D}" ]; then
echo "Building ${D}..."
cd "${D}"
pdflatex -interaction=batchmode -halt-on-error "${subdirectory_file_name}.tex"
pdflatex -interaction=batchmode -halt-on-error "${subdirectory_file_name}.tex"
cd ..
fi
done
# Build main PDF
main_file_name=main_text
echo "Building main PDF..."
pdflatex -interaction=batchmode -halt-on-error "${main_file_name}.tex"
pdflatex -interaction=batchmode -halt-on-error "${main_file_name}.tex"
# Clean up
rm -rf *.aux *.log *.out *.toc
for D in *; do
if [ "${D}" != "template" ] && [ -d "${D}" ]; then
cd "${D}"
rm -rf *.aux *.log *.out *.toc
cd ..
fi
done