dustin
/
jenkinsagent
Archived
1
0
Fork 0
This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
jenkinsagent/ci/Jenkinsfile

51 lines
1.2 KiB
Groovy

pipeline {
agent {
docker {
image 'registry.fedoraproject.io/fedora'
args '--privileged -u 0:0'
}
}
stages {
stage('Prepare') {
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',
],
],
]
steps {
sh '. ci/prepare.sh'
}
}
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'
}
}
}
}
}