That last one is a bit trickier to use behind a proxy. There is no obvious settings.xml or properties file where you can define your proxy server. The solution, however, is very simple. Go to your Cloudbees SDK root folder, and edit the bees.bat file. Change the JAVA_OPTS to the following:
JAVA_OPTS=-Dbees.home=%BEES_HOME% -Dhttp.proxyHost=<your proxy host> -Dhttp.proxyPort=<your proxy port> -Xmx256mSave the changes, and when you run the bees command from the console now, it will use your proxy settings. Easy as that!
Stijn, have you tried setting up in your bees.config? https://wiki.cloudbees.com/bin/view/RUN/BeesSDK#HRunningbehindaproxy
ReplyDeletethanks for using CloudBees!
Sacha
Thanks for the reply, Sacha.
DeleteYes, I found that wiki-page. But if you download Cloudbees SDK, and run it the first time from behind a proxy, no .bees folder is created. It attepmts to download a config file, but isn't able to because of the proxy.
After the initial config has been created, you can use the bees.config approach.
Hi Stijn,
ReplyDeleteI think it works with using > bees init --proxyHost=YOUR_PROXY_HOST --proxyPort=YOUR_PROXY_PORT ? Anyway I would like to know are there any tricks to use CLoudbees plugin for Eclipse behind proxy as it is not worked here.
https://wiki.cloudbees.com/bin/view/RUN/BeesSDK#HRunningbehindaproxy
-Patrick