summary refs log tree commit diff
path: root/nixos/modules/services/continuous-integration
diff options
context:
space:
mode:
authorSridhar Ratnakumar <3998+srid@users.noreply.github.com>2023-04-17 14:01:45 -0400
committeremilylange <git@emilylange.de>2023-07-02 19:07:44 +0200
commitac4790a84edc4ef5cf8ba3e97f1155190ee3eace (patch)
tree538dfd9308c8b2021555adfbbc364840c5fd15e2 /nixos/modules/services/continuous-integration
parent0a4206a51b386e5cda731e8ac78d76ad924c7125 (diff)
downloadnixpkgs-ac4790a84edc4ef5cf8ba3e97f1155190ee3eace.tar
nixpkgs-ac4790a84edc4ef5cf8ba3e97f1155190ee3eace.tar.gz
nixpkgs-ac4790a84edc4ef5cf8ba3e97f1155190ee3eace.tar.bz2
nixpkgs-ac4790a84edc4ef5cf8ba3e97f1155190ee3eace.tar.lz
nixpkgs-ac4790a84edc4ef5cf8ba3e97f1155190ee3eace.tar.xz
nixpkgs-ac4790a84edc4ef5cf8ba3e97f1155190ee3eace.tar.zst
nixpkgs-ac4790a84edc4ef5cf8ba3e97f1155190ee3eace.zip
nixos/jenkins-job-builder: Fix link to documentation, use mkEnableOption
Co-Authored-By: emilylange <git@emilylange.de>
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 3a1c6c1a371..d638fd3ee66 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";