Store chocolatey logs for further troubleshooting

If you are utilizing the windows executor and using chocolatey to download and install items in your jobs, you may encounter situations where the download or install fails. By default chocolatey will generate a log file, but unless you store it as an artifact it will inaccessible.

To troubleshoot these situations further, add the following step after your chocolatey steps:

- store_artifacts:
    path: C:\ProgramData\chocolatey\logs
    destination: chocolatey_logs

This will store the following logs that will contain the verbose output of the download and install commands and can help pinpoint where the issue may be.

Was this article helpful?
0 out of 0 found this helpful



Article is closed for comments.