You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our Jenkins server has multiple IP addresses (internal, local 10.206.x.x and external, public IP). The load balancer doesn’t allow any traffic except ports 80 and 443 through, so we have to connect to Docker JNLP containers using the local IP address (this isn’t an issue for SSH since the master ‘pushes’ to the slave, but we have some Windows nodes and need them to have access to the Jenkins master to ‘pull’). We’ve tried a bunch of ways to force the Docker JNLP containers to pick up the private IP, including:
a. JENKINS_TUNNEL variable set to private URL
b. JENKINS_URL variable set to private URL
c. Jenkins Slave config, Launch method, JNLP, Different Jenkins master URL
d. Modifying the JNLP java launch script to force the IP address
But it always seems to default to the Jenkins Configuration global setting for ‘Jenkins Location->Jenkins URL’.
We’ve temporarily changed this to the local IP (http://10.206.x.x:8080), but this causes other problems, including links redirecting users to the local IP and asking them to re-login. Ideally, we want to have the Jenkins location set to https://jenkins.serverdns.com, but cannot due to this issue.
The text was updated successfully, but these errors were encountered:
This works for me by configuring the Different jenkins master URL under the Launch method of yet another docker plugin cloud settings in the Jenkins global config.
JnlpAgentEndpointResolver receive list of Jenkins URLs ({Jenkins URL}, {Different jenkins master URL}). It check and sort each of URL and return jnlp port for wienerJenkinsURL. But JnlpAgentEndpointResolver do not check port for available and return it. Yet-another-docker-plugin will be try to recreate container because jenkins slave can`t connect to master in time.
I think it is not yet-another-docker-plugin issue.
a. JENKINS_TUNNEL variable set to private URL
b. JENKINS_URL variable set to private URL
c. Jenkins Slave config, Launch method, JNLP, Different Jenkins master URL
d. Modifying the JNLP java launch script to force the IP address
But it always seems to default to the Jenkins Configuration global setting for ‘Jenkins Location->Jenkins URL’.
We’ve temporarily changed this to the local IP (http://10.206.x.x:8080), but this causes other problems, including links redirecting users to the local IP and asking them to re-login. Ideally, we want to have the Jenkins location set to https://jenkins.serverdns.com, but cannot due to this issue.
The text was updated successfully, but these errors were encountered: