fatal-exception.jenkins

JENKINS

Ansible role to install and configure Jenkins master and slave.

Example

Install jenkins and some plugins

- hosts: jenkinsmaster

  vars:
    jenkins_version: 2.7.4
    jenkins_plugins:
      - 'ansicolor:0.4.2'
      - 'authentication-tokens:1.2'
      - 'build-monitor-plugin:1.8+build.201601112328'
      - 'build-name-setter:1.6.3'
      - 'build-pipeline-plugin:1.5.2'
      - 'claim:2.8'
      - 'copyartifact:1.38'
      - 'credentials-binding:1.7'
      - 'dashboard-view:2.9.7'
      - 'delivery-pipeline-plugin:0.9.9'  

  roles:
    - wunzeco.jenkins

You may be interested in these ansible roles:

Note:

  • Do not forget to install Java 8.

  • All plugins (including their dependencies) need to be listed in the form pluginID:version as there is no transitive dependency resolution. However, if version is omitted for a plugin the latest version will be installed.

To get a list of plugins from an existing Jenkins.

curl -sSL "http://localhost:8080/pluginManager/api/xml?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins" \
        | perl -pe 's/.*?<shortName>([\w-]+).*?<version>([^<]+)()(<\/\w+>)+/\1 \2\n/g'|sed 's/ /:/'

Testing

PLATFORM=ubuntu                              # OR centos
kitchen verify $PLATFORM && kitchen destroy $PLATFORM

Dependencies

None

ToDo

About

Install and configure Jenkins CI server

Install
ansible-galaxy install fatal-exception.jenkins
GitHub repository
License
Unknown
Downloads
44
Owner
Infrastructure horticulturist and automation artisan