Last active
February 12, 2016 20:26
-
-
Save echohack/8fea901549590e64a67b to your computer and use it in GitHub Desktop.
A Chef Recipe that installs jenkins plugins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install these plugins | |
# Uses the Jenkins cookbook available from the Chef Supermarket | |
# All plugins from https://updates.jenkins-ci.org/download/plugins/ | |
node.set['_jenkins']['plugins'] = [ | |
{ name: 'active-directory', source: 'https://updates.jenkins-ci.org/download/plugins/active-directory/1.33/active-directory.hpi' }, | |
{ name: 'artifactory', source: 'https://updates.jenkins-ci.org/download/plugins/artifactory/2.2.3/artifactory.hpi' }, | |
{ name: 'build-monitor-plugin', source: 'https://updates.jenkins-ci.org/download/plugins/build-monitor-plugin/1.6+build.132/build-monitor-plugin.hpi' }, | |
{ name: 'build-name-setter', source: 'https://updates.jenkins-ci.org/download/plugins/build-name-setter/1.3/build-name-setter.hpi' }, | |
{ name: 'countjobs-viewstabbar', source: 'https://updates.jenkins-ci.org/download/plugins/countjobs-viewstabbar/1.0.0/countjobs-viewstabbar.hpi' }, | |
{ name: 'downstream-ext', source: 'https://updates.jenkins-ci.org/download/plugins/downstream-ext/1.8/downstream-ext.hpi' }, | |
# email-ext requires dependencies to be installed first | |
{ name: 'token-macro', source: 'https://updates.jenkins-ci.org/download/plugins/token-macro/1.10/token-macro.hpi' }, | |
{ name: 'email-ext', source: 'https://updates.jenkins-ci.org/download/plugins/email-ext/2.38.1/email-ext.hpi' }, | |
{ name: 'envinject', source: 'https://updates.jenkins-ci.org/download/plugins/envinject/1.89/envinject.hpi' }, | |
{ name: 'external-monitor-job', source: 'https://updates.jenkins-ci.org/download/plugins/external-monitor-job/1.2/external-monitor-job.hpi' }, | |
{ name: 'git-client', source: 'https://updates.jenkins-ci.org/download/plugins/git-client/1.6.3/git-client.hpi' }, | |
{ name: 'git', source: 'https://updates.jenkins-ci.org/download/plugins/git/2.0.2/git.hpi' }, | |
{ name: 'git-server', source: 'https://updates.jenkins-ci.org/download/plugins/git-server/1.3/git-server.hpi' }, | |
{ name: 'github-api', source: 'https://updates.jenkins-ci.org/download/plugins/github-api/1.44/github-api.hpi' }, | |
{ name: 'github', source: 'https://updates.jenkins-ci.org/download/plugins/github/1.8/github.hpi' }, | |
{ name: 'greenballs', source: 'https://updates.jenkins-ci.org/download/plugins/greenballs/1.14/greenballs.hpi' }, | |
{ name: 'groovy', source: 'https://updates.jenkins-ci.org/download/plugins/groovy/1.18/groovy.hpi' }, | |
{ name: 'groovy-label-assignment', source: 'https://updates.jenkins-ci.org/download/plugins/groovy-label-assignment/1.0.0/groovy-label-assignment.hpi' }, | |
{ name: 'groovy-postbuild', source: 'https://updates.jenkins-ci.org/download/plugins/groovy-postbuild/1.9/groovy-postbuild.hpi' }, | |
{ name: 'jobConfigHistory', source: 'https://updates.jenkins-ci.org/download/plugins/jobConfigHistory/2.6/jobConfigHistory.hpi' }, | |
{ name: 'jquery', source: 'https://updates.jenkins-ci.org/download/plugins/jquery/1.7.2-1/jquery.hpi' }, | |
{ name: 'mapdb-api', source: 'https://updates.jenkins-ci.org/download/plugins/mapdb-api/1.0.1.0/mapdb-api.hpi' }, | |
{ name: 'monitoring', source: 'https://updates.jenkins-ci.org/download/plugins/monitoring/1.49.0/monitoring.hpi' }, | |
{ name: 'msbuild', source: 'https://updates.jenkins-ci.org/download/plugins/msbuild/1.21/msbuild.hpi' }, | |
{ name: 'mstest', source: 'https://updates.jenkins-ci.org/download/plugins/mstest/0.7/mstest.hpi' }, | |
{ name: 'nuget', source: 'https://updates.jenkins-ci.org/download/plugins/nuget/0.4/nuget.hpi' }, | |
{ name: 'nunit', source: 'https://updates.jenkins-ci.org/download/plugins/nunit/0.15/nunit.hpi' }, | |
{ name: 'parameterized-trigger', source: 'https://updates.jenkins-ci.org/download/plugins/parameterized-trigger/2.24/parameterized-trigger.hpi' }, | |
{ name: 'powershell', source: 'https://updates.jenkins-ci.org/download/plugins/powershell/1.2/powershell.hpi' }, | |
{ name: 'promoted-builds', source: 'https://updates.jenkins-ci.org/download/plugins/promoted-builds/2.17/promoted-builds.hpi' }, | |
{ name: 'rebuild', source: 'https://updates.jenkins-ci.org/download/plugins/rebuild/1.21/rebuild.hpi' }, | |
{ name: 'scm-api', source: 'https://updates.jenkins-ci.org/download/plugins/scm-api/0.2/scm-api.hpi' }, | |
{ name: 'sonar', source: 'https://updates.jenkins-ci.org/download/plugins/sonar/2.1/sonar.hpi' }, | |
{ name: 'tfs', source: 'https://updates.jenkins-ci.org/download/plugins/tfs/2.0/tfs.hpi' }, | |
{ name: 'versionnumber', source: 'https://updates.jenkins-ci.org/download/plugins/versionnumber/1.4.1/versionnumber.hpi' }, | |
{ name: 'ws-cleanup', source: 'https://updates.jenkins-ci.org/download/plugins/ws-cleanup/0.20/ws-cleanup.hpi' }, | |
{ name: 'xunit', source: 'https://updates.jenkins-ci.org/download/plugins/xunit/1.65/xunit.hpi' }] | |
node['_jenkins']['plugins'].each do |plugin| | |
jenkins_plugin plugin[:name] do | |
source plugin[:source] | |
notifies :restart, 'runit_service[jenkins]', :delayed | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment