Unable to find Jenkins configuration file to change port number

  Kiến thức lập trình

I have a request where I need to run our Jenkins servers on https or 443 port. It is currently exposed to 8080. When I try to update the port, I’m unable to find the config file where I need to update the port number. As suggested in the official document, I was unable to find the file at /usr/sysconfig/jenkins. I’m currently running on Amazon linux 2.

One thing, I have noticed is that the port is configured in /usr/bin/jenkins file but as a variable but couldn’t find anything related to where it is picking up the value for the variable from:

    if [ -n "${JENKINS_PORT}" ]; then
            inferred_jenkins_opts="${inferred_jenkins_opts} --httpPort=${JENKINS_PORT}"

Find the file where I can update the Jenkins config

New contributor

Raj Kiran is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1

LEAVE A COMMENT