Files
basementhud/ci/Jenkinsfile
Dustin C. Hatch 5a1054bf01 ci: Remove Clean parameter
This parameter no longer makes sense as the workspace is not preserved
between runs anyhow.
2022-12-01 20:40:27 -06:00

42 lines
983 B
Groovy

pipeline {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
defaultContainer 'build'
}
}
options {
buildDiscarder logRotator(numToKeepStr: '5')
disableConcurrentBuilds()
}
stages {
stage('Build') {
steps {
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'
}
}
}
}
}
}