Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI classes unaware of Jenkins' --prefix #357

Closed
drewhemm opened this issue Aug 11, 2015 · 2 comments
Closed

CLI classes unaware of Jenkins' --prefix #357

drewhemm opened this issue Aug 11, 2015 · 2 comments

Comments

@drewhemm
Copy link
Contributor

When one configures Jenkins to run with a prefix, e.g. fqdn:8080/jenkins, the CLI classes currently have no way of following this prefix and therefore are unable to communicate with the running Jenkins instance. The URL is hardcoded in cli.pp and cli_helper.pp.

@jhoblitt
Copy link
Member

The URL is generated here: https://github.com/jenkinsci/puppet-jenkins/blob/master/manifests/cli.pp#L57

Do you not want localhost in /etc/hosts or do you want to run jenkins without it listening on the loopback?

@drewhemm
Copy link
Contributor Author

The problem is not the domain, but the path. When Jenkins is running on http://localhost:8080/jenkins, the CLI tries to reach it on http://localhost:8080

I'm experimenting with creating a jenkins_prefix function in the same way as the current jenkins_port function to pull the value out of the config_hash...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants