JenkinsPipeLine: add Proxy disable toggle

This commit is contained in:
2022-06-30 03:38:26 +02:00
parent b8533ab3b3
commit 293a665c3f
2 changed files with 14 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ pipeline {
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'
booleanParam description: 'Disable of Proxy server for package repos ', name: 'DisProxy'
}
options {
skipDefaultCheckout()
@@ -26,6 +27,12 @@ pipeline {
mv distrobuilder-* distrobuilder
bash Scripts/GetExternalResources.sh
'''
//Check if Proxy is disabled
script{
if (env.DisProxy == 'true') {
sh '''bash Scripts/UpdateIMGBuildFile-CacheAndRepo.sh -d'''
}
}
}
}
stage('Image Configs'){