Skip to content
Branch: master
Clone or download
reschl and aboe76 Debian fixes (#82)
* move location of JENKINS_HOME definition

* add hint that the file is managed by salt

* add daemon binary for debian 9
Latest commit fe54091 Feb 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
jenkins Debian fixes (#82) Feb 15, 2019
test Fix tests Apr 26, 2017
.gitignore
.kitchen.yml #70: adds defaults and os-specific settings via yaml Jun 2, 2017
.travis.yml
Gemfile
Gemfile.lock Fix Rubyzip CVE dep Jan 15, 2019
LICENSE Update LICENSING year Mar 21, 2015
README.rst Updated docs Jul 24, 2018
pillar.example

README.rst

jenkins

Available states

jenkins

Install jenkins from the source package repositories and start it up.

jenkins.nginx

Add a jenkins nginx entry. It depends on the nginx formula being installed and requires manual inclusion nginx and jenkins states in your top.sls to function, in this order: jenkins, nginx, jenkins.nginx.

jenkins.plugins

Install listed jenkins plugins.

jenkins.jobs

Automatically create jenkins jobs and update them when they change. Allows you to specify a list of jobs that already exist on the server.

Assumes you have some way to copy your config to the server, e.g.

{% for job, path in salt['pillar.get']('jenkins:lookup:jobs:installed', {}).iteritems() %}
jenkins-host_job_definition_{{ job }}:
  file.managed:
    - name: {{ path }}
    - source: salt://path/to/jenkins/jobs/{{ job }}.xml
    - template: jinja

{% endfor %}

Pillar customizations:

jenkins:
  lookup:
    # Base
    port: 80
    home: /usr/local/jenkins
    user: jenkins
    group: www-data
    server_name: ci.example.com
    # Nginx
    symlink_vhost: False
    nginx_user: nginx
    nginx_group: nginx
    nginx_vhost_path: /etc/nginx/sites-available
    # Plugins
    plugins:
      installed:
        - git
        - rebuild
    # Jobs
    jobs:
      installed:
        JobName: /var/lib/jenkins/jobDefs/jobFile.xml
You can’t perform that action at this time.