61 lines
1.4 KiB
Groovy
61 lines
1.4 KiB
Groovy
pipeline {
|
|
agent {
|
|
dockerfile {
|
|
dir 'ci'
|
|
args '--privileged -u 0:0'
|
|
}
|
|
}
|
|
|
|
options {
|
|
disableConcurrentBuilds()
|
|
}
|
|
|
|
triggers {
|
|
pollSCM ''
|
|
}
|
|
|
|
stages {
|
|
stage('Prepare') {
|
|
steps {
|
|
checkout poll: false, scm: [
|
|
$class: 'GitSCM',
|
|
branches: [[name: '2022.02.x']],
|
|
doGenerateSubmoduleConfigurations: false,
|
|
userRemoteConfigs: [[url: 'git://git.buildroot.net/buildroot']],
|
|
extensions: [
|
|
[
|
|
$class: 'RelativeTargetDirectory',
|
|
relativeTargetDir: 'buildroot',
|
|
],
|
|
],
|
|
]
|
|
sh '. ci/prepare.sh'
|
|
}
|
|
}
|
|
|
|
stage('Build') {
|
|
parallel {
|
|
stage('Build Initramfs') {
|
|
steps {
|
|
sh '. ci/build-initramfs.sh'
|
|
}
|
|
}
|
|
|
|
stage('Build Rootfs') {
|
|
steps {
|
|
sh '. ci/build-rootfs.sh'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('Publish') {
|
|
steps {
|
|
sshagent(['jenkins-pxe']) {
|
|
sh '. ci/publish.sh'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|