ci: Begin Jenkins build pipeline

This commit is contained in:
2022-07-31 10:34:02 -05:00
parent 3c5ee6fa00
commit a285f1181a
4 changed files with 105 additions and 0 deletions

55
ci/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,55 @@
// vim: set sw=4 ts=4 sts=4 et :
// vim: set ft=groovy :
pipeline {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
}
}
stages {
stage('Build') {
parallel {
stage('Build Backend') {
steps {
container('python') {
dir('svc') {
sh '. ../ci/build-svc.sh'
}
}
}
post {
success {
dir('svc/dist') {
archiveArtifacts 'hudctrl-*'
}
}
}
}
stage('Build Frontend') {
steps {
container('node') {
dir('ui') {
sh '. ../ci/build-ui.sh'
}
}
}
post {
success {
dir('ui') {
archiveArtifacts 'hudctrl-ui.tar.gz'
}
}
failure {
dir('ui/npm_cache/_logs') {
archiveArtifacts '*'
}
}
}
}
}
}
}
}