summary refs log tree commit diff
path: root/nixos/modules/services/continuous-integration
diff options
context:
space:
mode:
authorEmily <git@emilylange.de>2023-07-02 19:49:17 +0200
committerGitHub <noreply@github.com>2023-07-02 19:49:17 +0200
commitd8c2229c49e0fdb0104f2ed76b6d626baad2f2d5 (patch)
tree417cca890fc5babe8152859eaee0d146e8bc991b /nixos/modules/services/continuous-integration
parent16d311599ffa7da6515368759d7da7d029406aa1 (diff)
parentac4790a84edc4ef5cf8ba3e97f1155190ee3eace (diff)
downloadnixpkgs-d8c2229c49e0fdb0104f2ed76b6d626baad2f2d5.tar
nixpkgs-d8c2229c49e0fdb0104f2ed76b6d626baad2f2d5.tar.gz
nixpkgs-d8c2229c49e0fdb0104f2ed76b6d626baad2f2d5.tar.bz2
nixpkgs-d8c2229c49e0fdb0104f2ed76b6d626baad2f2d5.tar.lz
nixpkgs-d8c2229c49e0fdb0104f2ed76b6d626baad2f2d5.tar.xz
nixpkgs-d8c2229c49e0fdb0104f2ed76b6d626baad2f2d5.tar.zst
nixpkgs-d8c2229c49e0fdb0104f2ed76b6d626baad2f2d5.zip
Merge pull request #226684 from srid/patch-8
nixos/jenkins-job-builder: Fix link to documentation, use mkEnableOption
Diffstat (limited to 'nixos/modules/services/continuous-integration')
-rw-r--r--nixos/modules/services/continuous-integration/jenkins/job-builder.nix27
1 files changed, 11 insertions, 16 deletions
diff --git a/nixos/modules/services/continuous-integration/jenkins/job-builder.nix b/nixos/modules/services/continuous-integration/jenkins/job-builder.nix
index d6a8c2a3f7c..a8e3effd1f7 100644
--- a/nixos/modules/services/continuous-integration/jenkins/job-builder.nix
+++ b/nixos/modules/services/continuous-integration/jenkins/job-builder.nix
@@ -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";