we are running jenkins master as docker container in DC/OS(mesos) environment. we have two ports available for setting up the configuration.
container port 8080 is mapped to service port 29XXXfor jenkins.
container port 50000 is mapped to service port 29XXX for jenkins-agent.
I have configured the jenkins-agent port in manage Jenkins->Global Security->TCP port for JNLP agents. and also tried to give the default port and multiple random ports but while running the agent i get the error as port is not reachable.
SEVERE: https://develop.qa.ampf.com/jenkins/ provided port:41172 is not reachable
java.io.IOException: https://develop.qa.ampf.com/jenkins/ provided port:41172 is not reachable
Suppressed: java.io.IOException: http://develop.qa.ampf.com/jenkins/tcpSlaveAgentListener/ is invalid: 302 Found
... 2 more
Do i need to mention anything in the tunnel part?