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

Add jenkins.model.JenkinsLocationConfiguration.xml during installation #119

Open
CodeShakingSheep opened this issue Jul 28, 2023 · 2 comments

Comments

@CodeShakingSheep
Copy link
Member

Describe the feature request

After a fresh installation I receive a warning

jenkins url is empty but is required for the proper operation of many jenkins features like email notifications, pr status update, and environment variables such as build_url.

Of course this can be configured easily in Jenkins web UI but it would be convenient to have this by default after install. The URL can be set automatically by adding jenkins.model.JenkinsLocationConfiguration.xml in /var/lib/jenkins with the following contents:

<?xml version='1.1' encoding='UTF-8'?>
<jenkins.model.JenkinsLocationConfiguration>
  <adminAddress>[email protected]</adminAddress>
  <jenkinsUrl>https://jenkinsurl.tld</jenkinsUrl>
</jenkins.model.JenkinsLocationConfiguration>

Expected behavior

jenkins.model.JenkinsLocationConfiguration.xml is automatically created during installation with the following variables:

  • adminAddress: mail address of yunohost admin user
  • jenkinsUrl: configured installation URL

This would also eliminate the mentioned warning after a fresh install.

@yalh76
Copy link
Member

yalh76 commented Jul 31, 2023

Feel free to do a PR for that.

@CodeShakingSheep
Copy link
Member Author

Ok, will create a PR for this in the upcoming weeks when I find the time.

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

2 participants