Files
k8s-reboot-coordinator/ci/Jenkinsfile
Dustin C. Hatch 07be7027f4
All checks were successful
dustin/k8s-reboot-coordinator/pipeline/head This commit looks good
ci: Restart DaemonSet after build
The new `kubeRolloutRestart` function works similarly to the
`kubeRestartDeployment` function, but supports any kind of pod
controller, including DaemonSet.
2025-10-12 10:31:28 -05:00

20 lines
353 B
Groovy

@Library('containerimages')
@Library('dch')
_
buildContainerImage2(
project: 'packages',
archlist: ['amd64', 'arm64'],
defaultBranch: 'master',
resources: [
cpu: 4,
memory: '2Gi',
],
)
stage('Deploy') {
when(env.BRANCH_NAME == "master") {
kubeRolloutRestart(kind: 'daemonset', namespace: 'default')
}
}