cookbook 'jenkins-tools', '~> 0.0.1'
jenkins-tools (1) Versions 0.0.1 Follow0
Adds usefull wrappers around jenkins cookbook resources.
cookbook 'jenkins-tools', '~> 0.0.1', :supermarket
knife supermarket install jenkins-tools
knife supermarket download jenkins-tools
jenkins-tools cookbook
Collection of useful wrapper around Chef's
jenkins cookbook resources.
Requirements
- Chef 11 or higher
- Ruby 1.9.3 or higher
Recipes
plugins
Wrapper for jenkins_plugin
resource. Installs plugins form node['jenkins']['server']['plugins']
and restarts Jenkins if needed.
Useful when you want to ping specific plugin versions.
Example
'jenkins' => { 'master' => { 'install_method' => 'package', 'version' => '1.628-1.1', }, 'server' => { 'plugins' => [ { 'name' => 'git', 'version' => '2.4.0' }, { 'name' => 'chucknorris', 'version' => '0.5' },
users
Wrapper for jenkins_user
resource. Creates users from node['jenkins']['server']['users']
. If you don't set password, it will not be changed on each chef run.
Example
"jenkins" => { "server" => { "users" => [ { 'username' => 'realloc', 'full_name' => 'Stanislav Bogatyrev', 'email' => 'realloc@realloc.spb.ru' },
credentials
Trivial wrapper for jenkins_private_key_credentials
. Other types will be supported later.
Make sure you don't expose private keys in clear text in roles! Use chef-vault with att-vault or any other means to encrypt sensitive data.
Example
"jenkins" => { "server" => { "credentials_key" => [ { 'name' => 'jenkins_vagrant_unsafe', 'id' => '666aab48-dead-4eef-b1e2-1d89d86f4458', 'description' => 'UNSAFE test key', 'private_key' => "-----BEGIN RSA PRIVATE KEY-----\n...-----END RSA PRIVATE KEY-----" }
secure
Adds admin
user with ADMINISTER
privileges. It generates key pair for it and uses to further configuration.
job-dsl
Adds a seed-job that will checkout git-repo, process files filtered by mask and creates jobs described with job-dsl.
Contributing
- Fork the repository on Github
- Create a named feature branch (like
feature/add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License & Authors
- Author:: Stanislav Bogatyrev (realloc@realloc.spb.ru)
Copyright:: 2015, Stanislav Bogatyrev 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.
Dependent cookbooks
jenkins > 2.2.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.0.1 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 CONTRIBUTING.md file
Foodcritic Metric
0.0.1 failed this metric
FC066: Ensure chef_version is set in metadata: jenkins-tools/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: jenkins-tools/metadata.rb:1
FC069: Ensure standardized license defined in metadata: jenkins-tools/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: jenkins-tools/recipes/plugins.rb:18
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.1 passed this metric
Testing File Metric
0.0.1 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
0.0.1 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
0.0.1 failed this metric
0.0.1 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 CONTRIBUTING.md file
Foodcritic Metric
0.0.1 failed this metric
FC066: Ensure chef_version is set in metadata: jenkins-tools/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: jenkins-tools/metadata.rb:1
FC069: Ensure standardized license defined in metadata: jenkins-tools/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: jenkins-tools/recipes/plugins.rb:18
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.0.1 passed this metric
Testing File Metric
0.0.1 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
0.0.1 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
0.0.1 failed this metric
FC067: Ensure at least one platform supported in metadata: jenkins-tools/metadata.rb:1
FC069: Ensure standardized license defined in metadata: jenkins-tools/metadata.rb:1
FC104: Use the :run action in ruby_block instead of :create: jenkins-tools/recipes/plugins.rb:18
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.0.1 passed this metric
Testing File Metric
0.0.1 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
0.0.1 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
0.0.1 failed this metric
0.0.1 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