ci: Add CUSTOM_TARGET parameter
If a value is provided for the `CUSTOM_TARGET` parameter, the specified target will be built first, before building the filesystem images. This provides a way to e.g. rebuild a specific package.
parent
0b535a2732
commit
cf053ee85c
|
@ -1,6 +1,7 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
parameters {
|
parameters {
|
||||||
booleanParam 'CLEAN_BUILD'
|
booleanParam 'CLEAN_BUILD'
|
||||||
|
string 'CUSTOM_TARGET'
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
@ -45,6 +46,11 @@ pipeline {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'make -C buildroot O="${PWD}"/_build BR2_EXTERNAL="${PWD}" aimeeos_qemu_aarch64_defconfig'
|
sh 'make -C buildroot O="${PWD}"/_build BR2_EXTERNAL="${PWD}" aimeeos_qemu_aarch64_defconfig'
|
||||||
|
script {
|
||||||
|
if (params.CUSTOM_TARGET) {
|
||||||
|
sh "make -C _build '${CUSTOM_TARGET}'"
|
||||||
|
}
|
||||||
|
}
|
||||||
sh 'make -C _build'
|
sh 'make -C _build'
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
|
Loading…
Reference in New Issue