Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

jenkins_plugins (9) Versions 1.2.3

Installs/Configures jenkins_plugins

Berkshelf/Librarian
Policyfile
Knife
cookbook 'jenkins_plugins', '~> 1.2.3'
cookbook 'jenkins_plugins', '~> 1.2.3', :supermarket
knife cookbook site install jenkins_plugins
knife cookbook site download jenkins_plugins
README
Dependencies
Changelog
Quality 56%

jenkins_plugins Cookbook

Build Status Cookbook Version GitHub license

This cookbook is designed to add an LWRPs around interacting with Jenkins Plugins.

Requirements

  • Chef 11 or higher
  • Ruby 1.9.3 or higher

Dependencies

  • jenkins
  • maven
  • ssh

Plugins Available

  1. Workflow
  2. Maven
  3. Git
  4. Artifactory
  5. SSH Keys
  6. SSH Config

Resources

jenkins_plugins_workflow

The Workflow plugin suite attempts to make it possible to directly write that script, what people often call a workflow (sometimes abbreviated flow), while integrating with Jenkins features like slaves and publishers.

jenkins_plugins_workflow 'my-first-workflow-job' do
  script 'hello-world.groovy' # Required
  description '' # Optional
  sandbox false # Optional
  version '1.8' # Optional
  action :create
end

jenkins_plugins_maven

jenkins_plugins_maven 'M3'
  install false
end

jenkins_plugins_git

jenkins_plugins_git 'git' do
  install true
  install_system false
  global_name ''
  global_email ''
  create_account false
  home 'git'
  version ''
  client_version ''
end

jenkins_plugins_artifactory

jenkins_plugins_artifactory 'artifactory' do
  url '' # Required
  username ''
  password ''
  timeout 300
  bypass_proxy false
end

jenkins_plugins_ssh_key

This LWRP is slightly out of key with everything else. It is not configuring anything Jenkins specific, it is simply used to write a private ssh key. This is here to enable the git LWRP to work correctly when needing to authenticate against a repository.

jenkins_plugins_ssh 'name' do
  type 'rsa' # Optional - Can be ['rsa', 'dsa', 'ecdsa']
end

:add

This action will check for a key in the following format:

#{jenkins_home}/.ssh/id_#{key_type}_#{name}

If this key does not exist the LWRP will add it.

:update

This action will update the contents of the key file if they have changed.

:remove

This action will check for a key in the following format:

#{jenkins_home}/.ssh/id_#{key_type}_#{name}

If this key exists the LWRP will remove it.

jenkins_plugins_ssh_config

TODO

Development

Please see the Contributing and Issue Reporting Guidelines.

License & Authors

Copyright (C) 2015 Monkey Little

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Dependent cookbooks

ssh = 0.10.10
maven = 1.3.1
jenkins >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

CHANGELOG


1.2.2

Improvements

  • Favour reload over restart when installing plugins

1.2.1

Improvements

  • Add id attribute so it can be specified by wrapper cookbooks.

1.2.0

Features

  • Added artifactory lwrp

Improvements

  • Added custom matchers for ChefSpec

Bug fixes

  • Fixed tests for git

1.1.0

Features

  • Added git lwrp

Improvements

  • Added serverspec tests
  • Added fixture cookbooks for testing with serverspec
  • Leveraged the ssh cookbook for the ssh config lwrp
  • Made all lwrp's idempotent

1.0.0

Initial release of jenkins_lwrp

Collaborator Number Metric
            

1.2.3 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

1.2.3 passed this metric

Foodcritic Metric
            

1.2.3 failed this metric

FC059: LWRP provider does not declare use_inline_resources: jenkins_plugins/providers/artifactory.rb:1
FC059: LWRP provider does not declare use_inline_resources: jenkins_plugins/providers/git.rb:1
FC059: LWRP provider does not declare use_inline_resources: jenkins_plugins/providers/maven.rb:1
FC059: LWRP provider does not declare use_inline_resources: jenkins_plugins/providers/ssh_config.rb:1
FC059: LWRP provider does not declare use_inline_resources: jenkins_plugins/providers/ssh_key.rb:1
FC059: LWRP provider does not declare use_inline_resources: jenkins_plugins/providers/workflow.rb:1
FC066: Ensure chef_version is set in metadata: jenkins_plugins/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

1.2.3 passed this metric

No Binaries Metric
            

1.2.3 passed this metric

Publish Metric
            

1.2.3 passed this metric

Supported Platforms Metric
            

1.2.3 passed this metric

Testing File Metric
            

1.2.3 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

1.2.3 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number