Files
mqttdpms/ci/Jenkinsfile
Dustin C. Hatch 76b2c0dd48
All checks were successful
dustin/mqttdpms/pipeline/pr-master This commit looks good
dustin/mqttdpms/pipeline/head This commit looks good
ci: build in kubernetes
We can use the same pod definition for both the x86_64 and aarch64
stages, since the `kubernetes` agent block can override the node
selector.
2022-12-12 15:40:03 -06:00

51 lines
1.4 KiB
Groovy

pipeline {
agent none
options {
disableConcurrentBuilds()
}
stages {
stage ('Build') {
parallel {
stage('Build: x86_64') {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
nodeSelector 'kubernetes.io/arch=amd64'
defaultContainer 'build'
}
}
steps {
sh '. ci/build.sh'
}
post {
success {
archiveArtifacts 'x86_64/mqttdpms'
}
}
}
stage('Build: aarch64') {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
nodeSelector 'kubernetes.io/arch=arm64'
defaultContainer 'build'
}
}
steps {
sh '. ci/build.sh'
}
post {
success {
archiveArtifacts 'aarch64/mqttdpms'
}
}
}
}
}
}
}