GroovyJenkins icon indicating copy to clipboard operation
GroovyJenkins copied to clipboard

Chef identity plugin for Jenkins doesn't work when Git also active?

Open Cervator opened this issue 10 years ago • 0 comments

Make a job with Chef Identity active, preparing the build environment. The .chef dir gets created and has the knife.rb file in it correctly, yay!

Now enable Git for the job, to pull in any repo. Wipe the workspace. The Git clone works fine and the .git dir gets created. The .chef dir no longer appears. Cheffy stuff fails. Wat.

It seems inconsistent and works sometimes, fails sometimes ...

There is a workaround - run the job once with only Chef enabled, not Git. The .chef is created. Then enable Git and .git is created. I suspect though that any actual changes to the knife.rb template in Configure Jenkins will fail to replicate in the .chef dir, which would be awfully easy to forget and pull out hair over for a few hours.

Edit: Seems so inconsistent the workaround doesn't work well enough either :( Disabled Git for the DestroyDropletAgent job too

Need to file a bug against the Chef Identity plugin.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9643796-chef-identity-plugin-for-jenkins-doesn-t-work-when-git-also-active?utm_campaign=plugin&utm_content=tracker%2F2774565&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2774565&utm_medium=issues&utm_source=github).

Cervator avatar Mar 17 '15 03:03 Cervator