Compare commits

..

1 Commits

Author SHA1 Message Date
Dustin a8e35edd25 wip: ci: run in kubernetes
dustin/basementhud/pipeline/pr-master This commit looks good Details
dustin/basementhud/pipeline/head There was a failure building this commit Details
2022-11-27 17:34:34 -06:00
1 changed files with 6 additions and 15 deletions

21
ci/Jenkinsfile vendored
View File

@ -2,6 +2,7 @@ pipeline {
agent { agent {
kubernetes { kubernetes {
yamlFile 'ci/podTemplate.yaml' yamlFile 'ci/podTemplate.yaml'
defaultContainer 'build'
} }
} }
@ -19,18 +20,10 @@ pipeline {
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
container('build') { script {
script { if (params.Clean) {
if (params.Clean) { sh 'rm -rf _build'
sh 'rm -rf _build'
}
} }
copyArtifacts \
filter: 'aarch64/mqttdpms',
projectName: '../mqttdpms/master',
selector: lastSuccessful()
sh 'install aarch64/mqttdpms overlay/usr/local/bin/'
sh 'make rootfs initramfs'
} }
copyArtifacts \ copyArtifacts \
filter: 'aarch64/mqttdpms', filter: 'aarch64/mqttdpms',
@ -48,10 +41,8 @@ pipeline {
} }
} }
steps { steps {
container('publish') { sshagent(['jenkins-pxe']) {
sshagent(['jenkins-pxe']) { sh 'make publish'
sh 'make publish'
}
} }
} }
} }