Files
basementhud/ci/Jenkinsfile
Dustin C. Hatch 19cb4256f3
All checks were successful
dustin/basementhud/pipeline/head This commit looks good
ci: Run in kubernetes
2022-12-01 20:03:33 -06:00

53 lines
1.2 KiB
Groovy

pipeline {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
defaultContainer 'build'
}
}
options {
buildDiscarder logRotator(numToKeepStr: '5')
disableConcurrentBuilds()
}
parameters {
booleanParam \
name: 'Clean',
description: 'Clean the workspace and perform a full rebuild'
}
stages {
stage('Build') {
steps {
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'
}
}
stage('Publish') {
when {
not {
changeRequest()
}
}
steps {
container('publish') {
sshagent(['jenkins-pxe']) {
sh 'make publish'
}
}
}
}
}
}