Compare commits

..

1 Commits

Author SHA1 Message Date
75e9a41420 wip: ci: run in kubernetes
Some checks reported errors
dustin/basementhud/pipeline/pr-master Something is wrong with the build of this commit
2022-11-25 17:09:37 -06:00

21
ci/Jenkinsfile vendored
View File

@@ -2,7 +2,6 @@ pipeline {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
defaultContainer 'build'
}
}
@@ -20,10 +19,18 @@ pipeline {
stages {
stage('Build') {
steps {
script {
if (params.Clean) {
sh 'rm -rf _build'
container('build') {
script {
if (params.Clean) {
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 \
filter: 'aarch64/mqttdpms',
@@ -41,8 +48,10 @@ pipeline {
}
}
steps {
sshagent(['jenkins-pxe']) {
sh 'make publish'
container('publish') {
sshagent(['jenkins-pxe']) {
sh 'make publish'
}
}
}
}