Giter VIP home page Giter VIP logo

Comments (15)

alfador1 avatar alfador1 commented on August 14, 2024 1

from stashnotifier-plugin.

scaytrase avatar scaytrase commented on August 14, 2024

Yes, it uses built-in jenkins proxy if configured

from stashnotifier-plugin.

scaytrase avatar scaytrase commented on August 14, 2024

private void configureProxy(HttpClientBuilder builder, URL url) {
Jenkins jenkins = Jenkins.getInstance();
ProxyConfiguration proxyConfig = jenkins.proxy;

from stashnotifier-plugin.

scaytrase avatar scaytrase commented on August 14, 2024

no, it's not possible. you trying to run a job on agent which is cannot access bitbucket with global proxy?

from stashnotifier-plugin.

alfador1 avatar alfador1 commented on August 14, 2024

It is a shared Jenkins. Used for lots of other jobs. The environment cannot access the bitbucket directly, but instead it needs to go through proxy. This is a specific use case for our jobs. We do not want the whole Jenkins to use that proxy. That is the problem

from stashnotifier-plugin.

alfador1 avatar alfador1 commented on August 14, 2024

no, it's not possible. you trying to run a job on agent which is cannot access bitbucket with global proxy?

It can access with global proxy, but we do not want a global proxy, cause it will affect all of our Jenkins. We need a proxy for that pipeline only

from stashnotifier-plugin.

scaytrase avatar scaytrase commented on August 14, 2024

how do you perform checkout on this environment?

from stashnotifier-plugin.

alfador1 avatar alfador1 commented on August 14, 2024

We have a variable gitproxy: proxyaddress
I believe that is being added as a parameter for git to know it uses proxy.
So when it checkouts it does

using GIT_ASKPASS to set credentials Company  Bitbucket Service User
Setting http proxy: b2b-http.something.com:8080

from stashnotifier-plugin.

scaytrase avatar scaytrase commented on August 14, 2024

If the slave node is under your control you can try to run agent process with envs like this JAVA_OPTS=-Dhttp.proxyHost=192.168.0.101 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=192.168.0.101 -Dhttps.proxyPort=3128

from stashnotifier-plugin.

alfador1 avatar alfador1 commented on August 14, 2024

No direct access to the agent, but maybe that can be added as an env to the pipeline during runtime?

from stashnotifier-plugin.

alfador1 avatar alfador1 commented on August 14, 2024

If the slave node is under your control you can try to run agent process with envs like this JAVA_OPTS=-Dhttp.proxyHost=192.168.0.101 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=192.168.0.101 -Dhttps.proxyPort=3128

Will it take JAVA OPTS from master Jenkins or from slave?

from stashnotifier-plugin.

alfador1 avatar alfador1 commented on August 14, 2024

As adviced I changed JAVA OPTS of jenkins agent, but no proxy was used in this case :(

from stashnotifier-plugin.

alfador1 avatar alfador1 commented on August 14, 2024

@scaytrase Do you plan to add that feature to the plugin?

from stashnotifier-plugin.

scaytrase avatar scaytrase commented on August 14, 2024

No, currently not. I'd better suggest to support slave node proxy instead of adding separate proxy settings to each plugin. You can try to fill a PR with it if you want to

from stashnotifier-plugin.

alfador1 avatar alfador1 commented on August 14, 2024

No, currently not. I'd better suggest to support slave node proxy instead of adding separate proxy settings to each plugin. You can try to fill a PR with it if you want to

I want, but I'm not a developer

from stashnotifier-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.