Disabled Proxy by default and added custom proxy option to jeninsfile

This commit is contained in:
2022-06-30 22:04:13 +02:00
parent 75a54c4fc2
commit 66e16943bc
5 changed files with 25 additions and 11 deletions

View File

@@ -8,6 +8,7 @@ pipeline {
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'
string defaultValue: '192.168.200.11', description: 'Proxy server for packages, (when enabled) ', name: 'ProxyServer'
}
options {
skipDefaultCheckout()
@@ -31,6 +32,9 @@ pipeline {
script{
if (env.DisProxy == 'true') {
sh '''bash Scripts/UpdateIMGBuildFile-CacheAndRepo.sh -d'''
} else {
env.ProxyServer = ProxyServer
sh '''bash Scripts/UpdateIMGBuildFile-CacheAndRepo.sh -e $ProxyServer'''
}
}
}