Skip to content

update cookbook version number

Russell Seymour edited this page Nov 13, 2017 · 1 revision

Update a cookbook version to the current build number

Settings

Setting Required Default Value Description
Display name yes Add variables to Chef environment (Chef) Set the display name for this task
Cookbook version yes $(Build.BuildNumber) Enter the version of the Cookbook to release. Typically this will match the build number of the triggering build
Metadata file yes $(Build.SourcesDirectory)/cookbooks/mycookbook/metadata.rb Enter the path of the Metadata.rb file to update

Information

This task runs in an Agent phase within the Build process. It takes the specified version number and applies it to the Chef metadata.rb, so it is ready for upload.