Increase timeout for wget
In case of using customer's http_proxy for deployment, it takes more then
3 seconds to reach destination host.
Change-Id: I4a0de155c98e4b6bc5fea913abc788ecb562d55b
diff --git a/src/com/mirantis/mk/Python.groovy b/src/com/mirantis/mk/Python.groovy
index ebb6fc9..7e34e20 100644
--- a/src/com/mirantis/mk/Python.groovy
+++ b/src/com/mirantis/mk/Python.groovy
@@ -31,7 +31,7 @@
if(!env.getEnvironment().containsKey("OFFLINE_DEPLOYMENT") || !env["OFFLINE_DEPLOYMENT"].toBoolean()){
try {
//TODO: remove wget after global env prop enforcments
- runVirtualenvCommand(path, "wget -q -T 3 --spider http://google.com && pip install -U setuptools pip")
+ runVirtualenvCommand(path, "wget -q -T 10 --spider http://google.com && pip install -U setuptools pip")
} catch(Exception e) {
common.warningMsg("Setuptools and pip cannot be updated, you might be offline")
}
diff --git a/src/com/mirantis/mk/Salt.groovy b/src/com/mirantis/mk/Salt.groovy
index 5a9d7ce..3d89fb5 100644
--- a/src/com/mirantis/mk/Salt.groovy
+++ b/src/com/mirantis/mk/Salt.groovy
@@ -668,7 +668,7 @@
if(!offlineDeployment){
try {
//TODO: remove wget after global env prop enforcments
- offlineDeployment = sh(script: "wget -q -T 3 --spider http://google.com", returnStatus: true) != 0
+ offlineDeployment = sh(script: "wget -q -T 10 --spider http://google.com", returnStatus: true) != 0
} catch(Exception e) {
def common = new com.mirantis.mk.Common()
common.warningMsg("You might be offline, will use pepper with option --json instead of option --json-file")