46 lines
1.2 KiB
Groovy
46 lines
1.2 KiB
Groovy
// 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'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('Build Frontend') {
|
|
steps {
|
|
container('node') {
|
|
dir('ui') {
|
|
sh 'whoammi'
|
|
sh 'id'
|
|
sh '. ../ci/build-ui.sh'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
failure {
|
|
dir('ui/npm_cache/_logs') {
|
|
archiveArtifacts '*'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|