[JIRA] (JENKINS-60000) Plugin ignores jenkins proxy settings

8 views
Skip to first unread message

mail@herbert.cc (JIRA)

unread,
Oct 31, 2019, 8:23:03 AM10/31/19
to jenkinsc...@googlegroups.com
Benjamin Herbert created an issue
 
Jenkins / Bug JENKINS-60000
Plugin ignores jenkins proxy settings
Issue Type: Bug Bug
Assignee: Azure DevOps
Components: azure-credentials-plugin
Created: 2019-10-31 12:22
Priority: Major Major
Reporter: Benjamin Herbert

I have an environment where Jenkins needs a proxy server to connect to the internet. I have entered the proxy into the plugins setting/configuration at Manage Jenkins > Manage Plugins > Advanced as described in https://wiki.jenkins.io/display/JENKINS/JenkinsBehindProxy. Connection does not work, as the proxy is not used.

Steps to reproduce:

  • Requirement: System that requires a proxy to access the internet.
  • Enter proxy settings in Manage Jenkins > Manage Plugins > Advanced
  • Add a new Credential - Kind "Microsoft Azure Service Principal" fill out:
    • Subscription ID
    • Client ID
    • Client Secret
    • Tenant ID
    • ID
    • Description
  • Click on "Verify Service Principal"
  • After some time the error appears: "The provided credentials are not valid"
    • I can see that the request is blocked in the firewall, as it is not using the proxy.
    • I verified the information of the credential, it is valid.

I would expect that the proxy is used and that the credentials can be validated correctly.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jieshe@microsoft.com (JIRA)

unread,
Oct 31, 2019, 10:28:03 PM10/31/19
to jenkinsc...@googlegroups.com
Jie Shen assigned an issue to Jie Shen
Change By: Jie Shen
Assignee: Azure DevOps Jie Shen

jieshe@microsoft.com (JIRA)

unread,
Oct 31, 2019, 10:31:03 PM10/31/19
to jenkinsc...@googlegroups.com
Jie Shen commented on Bug JENKINS-60000
 
Re: Plugin ignores jenkins proxy settings

This plugin does not support Jenkins proxy for now. It could be mitigated temporarily by using JVM parameters -Dhttps.proxyHost=foo -Dhttps.proxyPort=80 -Dhttp.nonProxyHosts="localhost|127.0.0.1|*.your.domain.com"  when start the jenkins server.

mail@herbert.cc (JIRA)

unread,
Nov 1, 2019, 5:02:06 AM11/1/19
to jenkinsc...@googlegroups.com

What implications does it have to set the JVM properties? I am wondering as the Jenkins-Wiki states that setting the Proxy in Jenkins is preferred over setting the JVM properties:

You can configure the proxy server that Jenkins will use by going to Manage Jenkins > Manage Plugins > Advanced. This is preferred over setting JVM properties.

 

jieshe@microsoft.com (JIRA)

unread,
Nov 1, 2019, 5:25:04 AM11/1/19
to jenkinsc...@googlegroups.com
Jie Shen commented on Bug JENKINS-60000

Jenkins itself is a Java program, so  you can set proxy for the entire Java program when you start Jenkins. Jenkins also has proxy setting as a software.

Reply all
Reply to author
Forward
0 new messages