Disabled Proxy by default and added custom proxy option to jeninsfile
This commit is contained in:
@@ -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'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user