Skip to content

Commit

Permalink
Merge pull request #5 from xebialabs-community/proxy
Browse files Browse the repository at this point in the history
Adding http proxy config
  • Loading branch information
jdewinne authored Nov 30, 2017
2 parents 46920a2 + 673e28d commit 280220a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/caflowdock/SendTeamInboxMessage.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
#

import flowdock
import os

from caflowdock.FlowdockHelper import FlowdockHelper

os.environ["HTTP_PROXY"] = "http://%s:%s" % (flowdockServer['proxyHost'], flowdockServer['proxyPort'])
api_key = FlowdockHelper.get_token(locals())
fdclient = flowdock.FlowDock(api_key=api_key, app_name=appName, project=project)

Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/synthetic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<property name="apiUrl" category="input" label="API url" required="true" default="https://api.flowdock.com"/>
<property name="flowToken" category="input" label="Flow Token" required="true"/>
<property name="enabled" category="input" label="Enabled" kind="boolean"/>
<property name="proxyHost" category="input" required="false" description="HTTP proxy host" />
<property name="proxyPort" category="input" required="false" description="HTTP proxy port"/>
</type>

<type type="flowdock.SendTeamInboxMessage" extends="xlrelease.PythonScript">
Expand Down

0 comments on commit 280220a

Please sign in to comment.