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.
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.
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.
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.