Update 'DebIMG.jenkinsfile'
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
String[] ImgVariantList = ['minmal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins' ]
|
String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins' ]
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'LXCBuilder' }
|
agent { label 'LXCBuilder' }
|
||||||
parameters {
|
parameters {
|
||||||
booleanParam description: 'Enable muticore support for ZX compression ', name: 'ZX_Multicore'
|
booleanParam description: 'Enable muticore support for ZX compression ', name: 'ZX_Multicore'
|
||||||
string defaultValue: '0', description: 'Set amount of core\'s ZX is allowed when compressing (use 0 for all cores)', name: 'ZX_Cores'
|
string defaultValue: '0', description: 'Set amount of core\'s ZX is allowed when compressing (use 0 for all cores)', name: 'ZX_Cores'
|
||||||
|
booleanParam description: 'Only build specified variant', name: 'OneRun'
|
||||||
|
string defaultValue: 'VariantName', description: 'Variant for OneBuild', name: 'OneRunVariant'
|
||||||
}
|
}
|
||||||
options {
|
options {
|
||||||
skipDefaultCheckout()
|
skipDefaultCheckout()
|
||||||
@@ -28,6 +30,13 @@ pipeline {
|
|||||||
stage('Image Configs'){
|
stage('Image Configs'){
|
||||||
steps{
|
steps{
|
||||||
script{
|
script{
|
||||||
|
|
||||||
|
//Set Variantlist to one if single build if requested
|
||||||
|
if (env.OneRun == 'true') {
|
||||||
|
ImgVariantList = [env.OneRunVariant]
|
||||||
|
}
|
||||||
|
|
||||||
|
//Run build for requested variants
|
||||||
for(ImgVariant in ImgVariantList){
|
for(ImgVariant in ImgVariantList){
|
||||||
env.ZX_Multicore = ZX_Multicore
|
env.ZX_Multicore = ZX_Multicore
|
||||||
env.ZX_Cores = ZX_Cores
|
env.ZX_Cores = ZX_Cores
|
||||||
|
|||||||
Reference in New Issue
Block a user