Squashed commit of jenkins changes

This commit is contained in:
2023-02-25 22:59:00 -08:00
parent 494e91dc98
commit bc8fedb54a
5 changed files with 252 additions and 0 deletions

28
resources/scripts/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,28 @@
pipeline {
agent none
environment {
NC_CRED = credentials("nc-jenkins-cred")
NO_TEST = true
}
stages {
stage("Build") {
agent {
docker {
image "git.betalupi.com/mark/latex:latest"
}
}
steps {
// Keep these in one "sh" directive.
// Todo: create setup files so we don't
// have to pip install manually here.
// Maybe integrate python packages into the docker container?
sh '''
python -m venv venv
source venv/bin/activate
pip install tomli webdavclient3
python resources/scripts/build.py
'''
}
}
}
}