Permalink
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (54 sloc) 1.91 KB
#
# Cookbook Name:: cooking-with-jenkins
# Recipe:: configure-jenkins
#
# Adds plugins and common configuration we'll rely on in our Jenkins
# job definitions.
#
# Copyright (C) 2013 Zachary Stevens
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# These plugins allow us to pull code (for jobs) from git
jenkins_plugin "scm-api"
jenkins_plugin "git-client"
jenkins_plugin "git"
# This colourises console output, instead of displaying literal ansi
# escape sequences in the browser.
jenkins_plugin "ansicolor"
# This plugin lets us define static files which can (optionally) be
# installed into a job's workspace before running any commands. We
# use it to override the test-kitchen configuration to use docker
# instead of vagrant.
cookbook_file "#{node[:jenkins][:server][:home]}/custom-config-files.xml" do
owner "jenkins"
group "jenkins"
mode "0644"
notifies :restart, "service[jenkins]"
end
jenkins_plugin "token-macro"
jenkins_plugin "config-file-provider" do
version "2.7"
action :install
end
# This plugin lets us parse console output to report on warnings.
# We'll use this to extract foodcritic's complaints, per the
# instructions on http://acrmp.github.io/foodcritic/#ci
jenkins_plugin "analysis-core"
jenkins_plugin "warnings"
cookbook_file "#{node[:jenkins][:server][:home]}/hudson.plugins.warnings.WarningsPublisher.xml" do
owner "jenkins"
group "jenkins"
mode "0644"
notifies :restart, "service[jenkins]"
end