# Jenkins Cookbook Refactor has landed in master!

**URL:** <https://discourse.chef.io/t/jenkins-cookbook-refactor-has-landed-in-master/4888>\
**Category:** Chef Infra (archive)\
**Created:** [January 14, 2014, 7:55pm UTC](https://discourse.chef.io/t/jenkins-cookbook-refactor-has-landed-in-master/4888 "2014-01-14T19:55:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Seth\_Vargo2](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@Seth\_Vargo2](https://discourse.chef.io/u/Seth_Vargo2)\
**Post date:** [January 14, 2014, 7:55pm UTC](https://discourse.chef.io/t/jenkins-cookbook-refactor-has-landed-in-master/4888/1 "2014-01-14T19:55:44Z")

</div>

Ohai Chefs!

As a followup to my earlier post regarding the Jenkins refactor, I am happy to report that the complete rewrite has now landed in the master branch on GitHub!

This refactor closed a number of issues, and our team is working diligently to address or cleanup any remaining tickets before the official release to the Chef community site.

We have enabled GitHub issues on the repository ([https://github.com/opscode-cookbooks/jenkins](https://github.com/opscode-cookbooks/jenkins)). As of today, we are no longer using JIRA to manage issues/pull requests for the Jenkins cookbook. We do still require a CLA for contributions, however.

There are a total of 93 commits, 146 files changed, and about 10,000 lines of Chef code changed in this release. As I said in the email last week, this are many breaking changes in this release, so please lock your Jenkins cookbook to the 1.x versions until you have time to upgrade:

# Berksfile

cookbook ‘jenkins’, ‘~\> 1.0’  
// some environment  
{  
“cookbook\_versions”: {  
“jenkins”: “~\> 1.0”  
}  
}  
It is highly unlikely that your cookbooks will function against the new cookbook without modification!

Important Changes

All resources have been refactored into HWRPs  
A fully-tested integration suite  
Slave recipes have been removed in favor of HWRPs  
Apache, Nginx, java, and iptables cookbooks have been removed as dependencies  
There are a number of changes, all of which will be detailed in the CHANGELOG with the full release.

Changeset  
Diff - warning, this may crash your browser…  
Happy cook(book)ing!

Seth Vargo  
Release Engineer, Opscode  
@sethvargo

---

<div class="post-metadata">

**Author:** ![Ranjib](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/ranjib/32/1040_2.png) [@Ranjib](https://discourse.chef.io/u/Ranjib)\
**Post date:** [January 14, 2014, 8:46pm UTC](https://discourse.chef.io/t/jenkins-cookbook-refactor-has-landed-in-master/4888/2 "2014-01-14T20:46:51Z")

</div>

\m/ . thank you,

On Tue, Jan 14, 2014 at 11:55 AM, Seth Vargo [sethvargo@getchef.com](mailto:sethvargo@getchef.com) wrote:

> Ohai Chefs!
> 
> As a followup to my earlier post[http://lists.opscode.com/sympa/arc/chef/2014-01/msg00047.html](http://lists.opscode.com/sympa/arc/chef/2014-01/msg00047.html)regarding the Jenkins refactor, I am happy to report that the complete  
> rewrite has now landed in the master branch on GitHub!
> 
> This refactor closed a number of issues, and our team is working  
> diligently to address or cleanup any remaining tickets before the official  
> release to the Chef community site.
> 
> We have enabled GitHub issues on the repository (  
> [GitHub - sous-chefs/jenkins: Development repository for the jenkins cookbook](https://github.com/opscode-cookbooks/jenkins)). As of today, _we are no  
> longer using JIRA to manage issues/pull requests for the Jenkins cookbook_.  
> We _do_ still require a CLA for contributions, however.
> 
> There are a total of 93 commits, 146 files changed, and about 10,000 lines  
> of Chef code changed in this release. As I said in the email last week,  
> this are many breaking changes in this release, so please lock your Jenkins  
> cookbook to the 1.x versions until you have time to upgrade:
> 
> # Berksfile
> 
> cookbook 'jenkins', '~\> 1.0'
> 
> // some environment  
> {  
> "cookbook\_versions": {  
> "jenkins": "~\> 1.0"  
> }  
> }
> 
> _It is highly unlikely that your cookbooks will function against the new  
> cookbook without modification!_  
> Important Changes
> 
> - All resources have been refactored into HWRPs
> - A fully-tested integration suite
> - Slave recipes have been removed in favor of HWRPs
> - Apache, Nginx, java, and iptables cookbooks have been removed as  
> dependencies
> 
> ## There are a number of changes, all of which will be detailed in the CHANGELOG with the full release.
> 
> - Changeset[https://github.com/opscode-cookbooks/jenkins/compare/v1.2.2...master](https://github.com/opscode-cookbooks/jenkins/compare/v1.2.2...master)
> - Diff[https://github.com/opscode-cookbooks/jenkins/compare/v1.2.2...master](https://github.com/opscode-cookbooks/jenkins/compare/v1.2.2...master)- warning, this may crash your browser...
> 
> Happy cook(book)ing!
> 
> Seth Vargo  
> Release Engineer, Opscode  
> @sethvargo [https://twitter.com/sethvargo](https://twitter.com/sethvargo)

---

<div class="post-metadata">

**Author:** ![Tucker](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@Tucker](https://discourse.chef.io/u/Tucker)\
**Post date:** [January 15, 2014, 9:28am UTC](https://discourse.chef.io/t/jenkins-cookbook-refactor-has-landed-in-master/4888/3 "2014-01-15T09:28:36Z")

</div>

Agreed but with caveats:

I've been refactoring a have complete wrapper recipe to work with 2.0.0.  
Installing Jenkins is a no brainer. Getting  
the jenkins\_private\_key\_credentials or jenkins\_ssh\_slave resources to work  
is a different story altogether. The end of the README mentions setting  
and executor private\_key and a jenkins\_user but that too bombs out.

This leads me to believe I'm missing something fundamental. This is what I  
was trying to do when my progress came to an end:

keys['ssh'][node.jenkins.master.deployment].each do |user, key|

jenkins\_private\_key\_credentials user do  
description user  
private\_key key['privkey']  
end  
end

The keys hash is loaded from encrypted data bags and I've verified the data  
is what I expect. At this point though, it's 1:30AM and I'm out of brain  
cells. Pointers?

On Tue, Jan 14, 2014 at 12:46 PM, Ranjib Dey [dey.ranjib@gmail.com](mailto:dey.ranjib@gmail.com) wrote:

> \m/ . thank you,
> 
> On Tue, Jan 14, 2014 at 11:55 AM, Seth Vargo [sethvargo@getchef.com](mailto:sethvargo@getchef.com)wrote:
> 
> > Ohai Chefs!
> > 
> > As a followup to my earlier post[http://lists.opscode.com/sympa/arc/chef/2014-01/msg00047.html](http://lists.opscode.com/sympa/arc/chef/2014-01/msg00047.html)regarding the Jenkins refactor, I am happy to report that the complete  
> > rewrite has now landed in the master branch on GitHub!
> > 
> > This refactor closed a number of issues, and our team is working  
> > diligently to address or cleanup any remaining tickets before the official  
> > release to the Chef community site.
> > 
> > We have enabled GitHub issues on the repository (  
> > [GitHub - sous-chefs/jenkins: Development repository for the jenkins cookbook](https://github.com/opscode-cookbooks/jenkins)). As of today, _we are no  
> > longer using JIRA to manage issues/pull requests for the Jenkins cookbook_.  
> > We _do_ still require a CLA for contributions, however.
> > 
> > There are a total of 93 commits, 146 files changed, and about 10,000  
> > lines of Chef code changed in this release. As I said in the email last  
> > week, this are many breaking changes in this release, so please lock your  
> > Jenkins cookbook to the 1.x versions until you have time to upgrade:
> > 
> > # Berksfile
> > 
> > cookbook 'jenkins', '~\> 1.0'
> > 
> > // some environment  
> > {  
> > "cookbook\_versions": {  
> > "jenkins": "~\> 1.0"  
> > }  
> > }
> > 
> > _It is highly unlikely that your cookbooks will function against the new  
> > cookbook without modification!_  
> > Important Changes
> > 
> > - All resources have been refactored into HWRPs
> > - A fully-tested integration suite
> > - Slave recipes have been removed in favor of HWRPs
> > - Apache, Nginx, java, and iptables cookbooks have been removed as  
> > dependencies
> > 
> > ## There are a number of changes, all of which will be detailed in the CHANGELOG with the full release.
> > 
> > - Changeset[https://github.com/opscode-cookbooks/jenkins/compare/v1.2.2...master](https://github.com/opscode-cookbooks/jenkins/compare/v1.2.2...master)
> > - Diff[https://github.com/opscode-cookbooks/jenkins/compare/v1.2.2...master](https://github.com/opscode-cookbooks/jenkins/compare/v1.2.2...master)- warning, this may crash your browser...
> > 
> > Happy cook(book)ing!
> > 
> > Seth Vargo  
> > Release Engineer, Opscode  
> > @sethvargo [https://twitter.com/sethvargo](https://twitter.com/sethvargo)

--

--tucker
