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
ca388e9138
|
@ -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,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ ! -f _build/.config ]; then
|
||||
make O="${PWD}"/_build BR2_EXTERNAL="${PWD}" kitchenos_defconfig
|
||||
fi
|
||||
|
||||
make -C _build
|
|
@ -0,0 +1,12 @@
|
|||
spec:
|
||||
containers:
|
||||
- name: build
|
||||
image: git.pyrocufflink.net/containerimages/buildroot
|
||||
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