Skip to content

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

@CodeShakingSheep

Description

@CodeShakingSheep

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>yunohostuser@yunohostdomain.tld</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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions