JenkinsPipeLine: add Proxy disable toggle
This commit is contained in:
@@ -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'
|
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'
|
booleanParam description: 'Only build specified variant', name: 'OneRun'
|
||||||
string defaultValue: 'VariantName', description: 'Variant for OneBuild', name: 'OneRunVariant'
|
string defaultValue: 'VariantName', description: 'Variant for OneBuild', name: 'OneRunVariant'
|
||||||
|
booleanParam description: 'Disable of Proxy server for package repos ', name: 'DisProxy'
|
||||||
}
|
}
|
||||||
options {
|
options {
|
||||||
skipDefaultCheckout()
|
skipDefaultCheckout()
|
||||||
@@ -26,6 +27,12 @@ pipeline {
|
|||||||
mv distrobuilder-* distrobuilder
|
mv distrobuilder-* distrobuilder
|
||||||
bash Scripts/GetExternalResources.sh
|
bash Scripts/GetExternalResources.sh
|
||||||
'''
|
'''
|
||||||
|
//Check if Proxy is disabled
|
||||||
|
script{
|
||||||
|
if (env.DisProxy == 'true') {
|
||||||
|
sh '''bash Scripts/UpdateIMGBuildFile-CacheAndRepo.sh -d'''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Image Configs'){
|
stage('Image Configs'){
|
||||||
|
|||||||
@@ -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'
|
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'
|
booleanParam description: 'Only build specified variant', name: 'OneRun'
|
||||||
string defaultValue: 'VariantName', description: 'Variant for OneBuild', name: 'OneRunVariant'
|
string defaultValue: 'VariantName', description: 'Variant for OneBuild', name: 'OneRunVariant'
|
||||||
|
booleanParam description: 'Disable of Proxy server for package repos ', name: 'DisProxy'
|
||||||
}
|
}
|
||||||
options {
|
options {
|
||||||
skipDefaultCheckout()
|
skipDefaultCheckout()
|
||||||
@@ -26,6 +27,12 @@ pipeline {
|
|||||||
mv distrobuilder-* distrobuilder
|
mv distrobuilder-* distrobuilder
|
||||||
bash Scripts/GetExternalResources.sh
|
bash Scripts/GetExternalResources.sh
|
||||||
'''
|
'''
|
||||||
|
//Check if Proxy is disabled
|
||||||
|
script{
|
||||||
|
if (env.DisProxy == 'true') {
|
||||||
|
sh '''bash Scripts/UpdateIMGBuildFile-CacheAndRepo.sh -d'''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Image Configs'){
|
stage('Image Configs'){
|
||||||
|
|||||||
Reference in New Issue
Block a user