nixos/jenkins-job-builder: Fix link to documentation, use mkEnableOption

Co-Authored-By: emilylange <git@emilylange.de>
This commit is contained in:
Sridhar Ratnakumar 2023-04-17 14:01:45 -04:00 committed by emilylange
parent 0a4206a51b
commit ac4790a84e
No known key found for this signature in database
GPG Key ID: 0AD773CE46FD0F87

View File

@ -9,25 +9,20 @@ let
in {
options = {
services.jenkins.jobBuilder = {
enable = mkOption {
type = types.bool;
default = false;
description = lib.mdDoc ''
Whether or not to enable the Jenkins Job Builder (JJB) service. It
allows defining jobs for Jenkins in a declarative manner.
enable = mkEnableOption (mdDoc ''
the Jenkins Job Builder (JJB) service. It
allows defining jobs for Jenkins in a declarative manner.
Jobs managed through the Jenkins WebUI (or by other means) are left
unchanged.
Jobs managed through the Jenkins WebUI (or by other means) are left
unchanged.
Note that it really is declarative configuration; if you remove a
previously defined job, the corresponding job directory will be
deleted.
Note that it really is declarative configuration; if you remove a
previously defined job, the corresponding job directory will be
deleted.
Please see the Jenkins Job Builder documentation for more info:
[
http://docs.openstack.org/infra/jenkins-job-builder/](http://docs.openstack.org/infra/jenkins-job-builder/)
'';
};
Please see the Jenkins Job Builder documentation for more info:
<https://jenkins-job-builder.readthedocs.io/>
'');
accessUser = mkOption {
default = "admin";