Skip to content

upload cookbook to chef server

Russell Seymour edited this page Jul 4, 2018 · 3 revisions

Upload a cookbook to Chef Server including dependencies

Settings

Setting Group Required Default Value Description
Display name yes Upload cookbook to Chef Server (Chef) Set the display name for this task
Chef Server endpoint yes Select a valid Chef Server endpoint to use for this task
Cookbook path yes $(Build.SourcesDirectory)/cookbooks Enter the path of the cookbook to upload
Berkshelf Install Arguments Advanced no Allow extra arguments to be specified when installing cookbooks
Berkshelf Upload Arguments Advanced no Allow extra arguments to be specified when uploading the cookbook
Delete Private Key Advanced no True Remove the private key from the agent after completion

Upload Cookbook Task Options

Information

This task runs in an Agent phase within the Build process. It uses the equivalent of the berks install and berks upload commands from the Chef Development Kit to perform this action.

Additional arguments can be passed to the install and upload by using the appropriate field in the 'Advanced' group on the task parameters.

For example an exception could be added to the install task so that certain groups are not installed, e.g. --except integration

Clone this wiki locally