1
0
Fork 0

draft: schedule to run monthly
dustin/pythonctnr/pipeline/head Something is wrong with the build of this commit Details

Dustin 2022-10-31 10:17:45 -05:00
parent 5f0d0cade4
commit a4d24bcf1e
1 changed files with 3 additions and 12 deletions

15
ci/Jenkinsfile vendored
View File

@ -5,9 +5,7 @@ pipeline {
kubernetes { kubernetes {
yamlFile 'ci/podTemplate.yaml' yamlFile 'ci/podTemplate.yaml'
defaultContainer 'buildroot' defaultContainer 'buildroot'
workspaceVolume persistentVolumeClaimWorkspaceVolume( workspaceVolume dynamicPVC()
claimName: 'jenkins-ws-pythonctnr'
)
} }
} }
@ -16,20 +14,13 @@ pipeline {
disableConcurrentBuilds() disableConcurrentBuilds()
} }
parameters { triggers {
booleanParam \ cron 'TZ=America/Chicago\nH H H * *'
name: 'Clean',
description: 'Clean the workspace and perform a full rebuild'
} }
stages { stages {
stage('Prepare') { stage('Prepare') {
steps { steps {
script {
if (params.Clean) {
sh 'rm -rf _build'
}
}
checkout poll: false, scm: [ checkout poll: false, scm: [
$class: 'GitSCM', $class: 'GitSCM',
branches: [[name: '2022.05.x']], branches: [[name: '2022.05.x']],