Files
metricspi/ci/Jenkinsfile
Dustin C. Hatch 61154fc740
All checks were successful
dustin/metricspi/pipeline/head This commit looks good
ci: Increase workspace volume size
The default volume size created by the `dynamicPVC` function is not
sufficient to build the *metricspi* project.
2022-12-21 11:05:19 -06:00

77 lines
1.8 KiB
Groovy

// vim: set ft=groovy :
pipeline {
agent {
kubernetes {
yamlFile 'ci/podTemplate.yaml'
defaultContainer 'buildroot'
workspaceVolume dynamicPVC(
requestsSize: '20Gi',
)
}
}
options {
buildDiscarder logRotator(numToKeepStr: '5')
disableConcurrentBuilds()
}
environment {
BUILDROOT_SRC = "${env.WORKSPACE}/buildroot"
TMPDIR = "${env.WORKSPACE_TMP}"
TEMP = "${env.WORKSPACE_TMP}"
TMP = "${env.WORKSPACE_TMP}"
}
stages {
stage('Prepare') {
steps {
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') {
parallel {
stage('Build Initramfs') {
steps {
sh 'make initramfs'
}
}
stage('Build Rootfs') {
steps {
sh 'make rootfs'
}
}
}
}
stage('Package') {
steps {
sh 'make package'
}
}
}
post {
success {
dir('_build') {
archiveArtifacts 'metricspi.tar'
}
}
}
}