wip: Add Jenkins build pipeline
dustin/kitchenos/pipeline/head There was a failure building this commit
Details
dustin/kitchenos/pipeline/head There was a failure building this commit
Details
parent
dfe6bc6ef6
commit
6f9602ffdf
|
@ -0,0 +1,20 @@
|
||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
kubernetes {
|
||||||
|
yamlFile 'ci/podTemplate.yaml'
|
||||||
|
yamlMergeStrategy merge()
|
||||||
|
workspaceVolume persistentVolumeClaimWorkspaceVolume(
|
||||||
|
claimName: 'buildroot-kitchenos'
|
||||||
|
)
|
||||||
|
defaultContainer 'build'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh '. ci/build.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
BUILDROOT_REPO=https://gitlab.com/buildroot.org/buildroot.git
|
||||||
|
BUILDROOT_BRANCH=2025.05.x
|
||||||
|
|
||||||
|
DEFCONFIG=kitchenos_defconfig
|
||||||
|
|
||||||
|
id
|
||||||
|
rm -rf buildroot
|
||||||
|
|
||||||
|
if [ ! -d buildroot ]; then
|
||||||
|
git clone "${BUILDROOT_REPO}" --depth=1 -b "${BUILDROOT_BRANCH}"
|
||||||
|
else
|
||||||
|
git -C buildroot fetch --depth=1 origin "${BUILDROOT_BRANCH}"
|
||||||
|
git checkout -f "${BUILDROOT_BRANCH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f _build/.config ]; then
|
||||||
|
make -C buildroot O="${PWD}"/_build BR2_EXTERNAL="${PWD}" "${DEFCONFIG}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
make -C _build
|
|
@ -0,0 +1,17 @@
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: build
|
||||||
|
image: git.pyrocufflink.net/containerimages/buildroot
|
||||||
|
resources:
|
||||||
|
limits: &resources
|
||||||
|
cpu: 6
|
||||||
|
memory: 12Gi
|
||||||
|
requests: *resources
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /etc/ssh/ssh_known_hosts
|
||||||
|
name: ssh-known-hosts
|
||||||
|
subPath: ssh_known_hosts
|
||||||
|
volumes:
|
||||||
|
- name: ssh-known-hosts
|
||||||
|
configMap:
|
||||||
|
name: ssh-known-hosts
|
Loading…
Reference in New Issue