55 lines
1.4 KiB
Groovy
55 lines
1.4 KiB
Groovy
// vim: set ft=groovy sw=4 ts=4 sts=4 et :
|
|
|
|
pipeline {
|
|
agent {
|
|
kubernetes {
|
|
yamlFile 'ci/podTemplate.yaml'
|
|
defaultContainer 'buildroot'
|
|
}
|
|
}
|
|
|
|
options {
|
|
buildDiscarder logRotator(numToKeepStr: '5')
|
|
disableConcurrentBuilds()
|
|
}
|
|
|
|
parameters {
|
|
booleanParam \
|
|
name: 'Clean',
|
|
description: 'Clean the workspace and perform a full rebuild'
|
|
}
|
|
|
|
stages {
|
|
stage('Prepare') {
|
|
steps {
|
|
script {
|
|
if (params.Clean) {
|
|
sh 'rm -rf _build'
|
|
}
|
|
}
|
|
checkout poll: false, scm: [
|
|
$class: 'GitSCM',
|
|
branches: [[name: '2022.05.x']],
|
|
doGenerateSubmoduleConfigurations: false,
|
|
userRemoteConfigs: [[url: 'git://git.buildroot.net/buildroot']],
|
|
extensions: [
|
|
[
|
|
$class: 'RelativeTargetDirectory',
|
|
relativeTargetDir: 'buildroot',
|
|
],
|
|
],
|
|
]
|
|
}
|
|
}
|
|
|
|
stage('Build') {
|
|
steps {
|
|
sh 'make -C buildroot O="${PWD}"/_build pythonctnr_defconfig'
|
|
sh 'make -C _build'
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|