You might encounter "kitchen.yml does not exist" issue with execute chef component task in Azure pipelines. Reason for this failure is, Azure DevOps pipeline task is looking for the kitchen.yml file in the Build.SourcesDirectory by default. Further, there is no parameter to pass the kitchen.yml file location with kitchen create command.
Issue
Fix
To fix the issue, you can add kitchen.yml file path to environment variable KITCHEN_YAML in the advanced section of the Execute Chef Component task in Azure DevOps pipeline.
Run pipeline again. Pipeline will locate the kitchen.yml file successfully.
No comments:
Post a Comment