Branch: refs/heads/release-15.09
Home: https://github.com/NixOS/nixpkgs
Commit: 050bdc35346264627323bd6ebb5e4d9e6c4f5a73
https://github.com/NixOS/nixpkgs/commit/050bdc35346264627323bd6ebb5e4d9e6c4f5a73
Author: Bjørn Forsman <[email protected]>
Date: 2015-11-05 (Thu, 05 Nov 2015)
Changed paths:
M nixos/modules/module-list.nix
A nixos/modules/services/continuous-integration/jenkins/job-builder.nix
Log Message:
-----------
nixos: add services.jenkins.jobBuilder option
This option allows to define (declarative) Jenkins jobs, using Jenkins
Job Builder (JJB) as backend.
Example:
services.jenkins = {
enable = true;
jobBuilder = {
enable = true;
yamlJobs = ''
- job:
name: jenkins-job-test
builders:
- shell: echo 'Hello world!'
'';
};
};
Jobs can be defined using YAML, JSON and Nix.
Note that it really is declarative configuration; if you remove a
previously defined job, the module will remove the jobdir under
$JENKINS_HOME.
Jobs managed through the Jenkins WebUI (or by other means) are not
touched by this module.
Changes v1 -> v2:
* add nixJobs
* let jsonJobs take a list of strings (allows merge)
* 4 space indent in shell code
(cherry picked from commit 27f41d8c0afd2e1380bbab4eea45a16f9345f90c)
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits