handouts/resources/scripts/Jenkinsfile

29 lines
581 B
Plaintext
Raw Normal View History

2023-02-25 22:59:00 -08:00
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
'''
}
}
}
}