ef-labs / stash-hook-mirror

An Atlassian Stash repository hook for mirroring to one or more remote git repositories.
MIT License
77 stars 58 forks source link

Proxy Settings for the Plugin #67

Closed mschantl05 closed 5 years ago

mschantl05 commented 5 years ago

We are facing a problem with the Repository Mirror Plugin for Bitbucket.

The Plugin doesn't use our proxy config from _start-webapp.sh.

For accessing the Atlassian Marketplace and updating the plugin from the server it works well but if I want to mirror repo, the plugin doesn't use our proxy settings.

I hope someone can help me.

Thx

adrianluisgonzalez commented 5 years ago

The plugin starts a separate git process for the mirror commands. You would need to configure git to use your proxy. I think something like this should do the trick:

git config --global http.proxy http://proxyUsername:proxyPassword@proxy.server.com:port
mschantl05 commented 5 years ago

Thank you very much, it works