1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Dustin 8e337f16e8 draft: br2 ccache
dustin/pythonctnr/pipeline/head This commit looks good Details
2022-10-31 11:38:32 -05:00
Dustin a4d24bcf1e draft: schedule to run monthly
dustin/pythonctnr/pipeline/head Something is wrong with the build of this commit Details
2022-10-31 11:14:28 -05:00
4 changed files with 14 additions and 14 deletions

15
ci/Jenkinsfile vendored
View File

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

View File

@ -7,9 +7,14 @@ spec:
command:
- sleep
- infinity
env:
- name: HOME
value: /home/jenkins
volumeMounts:
- name: tmp
mountPath: /tmp
- name: br2-ccache
mountPath: /home/jenkins/.buildroot-ccache
securityContext:
readOnlyRootFilesystem: true
runAsUser: 1000
@ -25,3 +30,6 @@ spec:
emptyDir:
medium: Memory
sizeLimit: 100Mi
- name: br2-ccache
persistentVolumeClaim:
claimName: jenkins-br2-ccache

View File

@ -5,10 +5,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jenkins-ws-pythonctnr
name: jenkins-br2-ccache
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storage: 20Gi

View File

@ -1,4 +1,5 @@
BR2_x86_64=y
BR2_CCACHE=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TARGET_GENERIC_HOSTNAME="pythonctnr"
BR2_TARGET_GENERIC_ISSUE=""