Iam getting crazy with Chef, Vagrant and Test-Kitchen.
We have an customized Jenkins Cookbook, it works on "normal" Clients without Cooperate Network Proxys, but fails behind with the following error.
- create new file /tmp/kitchen/cache/jenkins-cli.jar
- update content in file /tmp/kitchen/cache/jenkins-cli.jar from none to 0b49c2
(new content is binary, diff output suppressed)
* remote_file[/tmp/kitchen/cache/update-center.json] action create_if_missing
[2015-05-11T16:28:32+00:00] ERROR: Error connecting to http://mirrors.jenkins-ci.org/updates/update-center.json, retry 1/5
[2015-05-11T16:30:43+00:00] ERROR: Error connecting to http://mirrors.jenkins-ci.org/updates/update-center.json, retry 2/5
[2015-05-11T16:32:54+00:00] ERROR: Error connecting to http://mirrors.jenkins-ci.org/updates/update-center.json, retry 3/5
[2015-05-11T16:35:06+00:00] ERROR: Error connecting to http://mirrors.jenkins-ci.org/updates/update-center.json, retry 4/5
[2015-05-11T16:37:17+00:00] ERROR: Error connecting to http://mirrors.jenkins-ci.org/updates/update-center.json, retry 5/5
All other ressources are downloaded without any problems (using vagrant proxy plugin). The Host is based on Windows 7, the guest is CentOS 6.6
Problem identfied: jenkins-cli.jar is not using system proxy, iam not able to download plugin when logged in to the VM. But no solution found so far (;
As a quick workaround, simply set the attribute:
to point to a local HTTP server, where the
http://example.lan/updates/update-center.json
is an empty JSON file (or, generally, the server returns 200 for the requestGET /updates/update-center.json
).Also, please have a look at this line of code.