1
0
Fork 0

draft: ci: add ui build step
dustin/hudctrl/pipeline/head Something is wrong with the build of this commit Details

Dustin 2022-07-31 10:48:54 -05:00
parent e7ace41657
commit b9c7b0a1dd
3 changed files with 28 additions and 6 deletions

25
ci/Jenkinsfile vendored
View File

@ -9,15 +9,28 @@ pipeline {
}
stages {
stage('Build Backend') {
steps {
container('python') {
dir('svc') {
sh '. ../ci/build-svc.sh'
stage('Build') {
parallel {
stage('Build Backend') {
steps {
container('python') {
dir('svc') {
sh '. ../ci/build-svc.sh'
}
}
}
}
stage('Build Frontent') {
steps {
container('node') {
dir('ui') {
sh '. ../ci/build-ui.sh'
}
}
}
}
}
}
}
}

4
ci/build-ui.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh -ex
npm install
npm run build

View File

@ -5,3 +5,8 @@ spec:
command:
- sleep
- infinity
- name: node
image: docker.io/node:16-bullseye-slim
command:
- sleep
- infinity