1
0
Fork 0

ci: Begin Jenkins build pipeline
dustin/hudctrl/pipeline/head There was a failure building this commit Details

Dustin 2022-07-31 10:34:02 -05:00
parent 3c5ee6fa00
commit 3555c07aa0
3 changed files with 37 additions and 0 deletions

23
ci/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,23 @@
// vim: set sw=4 ts=4 sts=4 et :
// vim: set ft=groovy :
pipeline {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
}
}
stages {
stage('Build Backend') {
steps {
container('python') {
dir('svc') {
sh '. ../ci/build-svc.sh'
}
}
}
}
}
}

7
ci/build-svc.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh -ex
python -m venv .venv
.venv/bin/python -m pip install -U pip setuptools wheel
.venv/bin/python -m pip install poetry
.venv/bin/poetry build

7
ci/podTemplate.yaml Normal file
View File

@ -0,0 +1,7 @@
spec:
containers:
- name: python
image: docker.io/python:3.10
command:
- sleep
- infinity