{"id":54066,"date":"2019-02-05T21:00:53","date_gmt":"2019-02-06T05:00:53","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/devops\/?p=54066"},"modified":"2019-02-14T15:48:00","modified_gmt":"2019-02-14T23:48:00","slug":"adding-caching-to-azure-pipelines","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/adding-caching-to-azure-pipelines\/","title":{"rendered":"Adding caching to Azure Pipelines"},"content":{"rendered":"<p>For a long while, <a href=\"https:\/\/azure.microsoft.com\/en-us\/services\/devops\/pipelines\/\">Azure Pipelines<\/a> users <a href=\"https:\/\/visualstudio.uservoice.com\/forums\/330519-azure-devops-formerly-visual-studio-team-services\/suggestions\/32044321-improve-hosted-build-agent-performance-with-build\">have been<\/a> <a href=\"https:\/\/developercommunity.visualstudio.com\/content\/idea\/365799\/improve-hosted-build-agent-performance-with-build.html\">asking<\/a> to improve performance on the <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/devops\/pipelines\/agents\/hosted\">hosted build agents<\/a> by adding caching for common scenarios like package restore. The issue came up in a recent popular\u00a0<a href=\"https:\/\/news.ycombinator.com\/item?id=18983586\">Hacker News<\/a>\u00a0item, so we wanted to share an update.<\/p>\n<p>Pipeline Caching is starting development now. You can see the design in <a href=\"https:\/\/github.com\/Microsoft\/azure-pipelines-yaml\/pull\/113\">this PR<\/a>. Near the end of March, we&#8217;ll be releasing restore and save cache tasks that allow you to cache any file or set of files to a cache key of your choice. If you&#8217;re building some dependencies over and over or restoring a lot of packages, these tasks can add immediate time savings to your pipelines.<\/p>\n<p>Continuing in Q2, we&#8217;ll improve those tasks after we see how you use them in your pipelines. We&#8217;ll also be enabling caching by default in the most popular ecosystems (think NuGet, pip, npm) as we learn more about the performance of those tools.<\/p>\n<p>Please share your feedback on <a href=\"https:\/\/github.com\/Microsoft\/azure-pipelines-yaml\/pull\/113\">the PR<\/a>; we&#8217;ll be reading and evolving the design as we go. Also feel free to get in touch with\u00a0<a href=\"https:\/\/twitter.com\/alexmullans\">me<\/a>\u00a0and\u00a0<a href=\"https:\/\/twitter.com\/mitchdenny\">Mitch Denny<\/a>, the feature owner for Pipeline Caching. We&#8217;re eager to hear about your ideas for using caching in your pipelines.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a long while, Azure Pipelines users have been asking to improve performance on the hosted build agents by adding caching for common scenarios like package restore. The issue came up in a recent popular Hacker News item, so we wanted to share an update.<\/p>\n","protected":false},"author":734,"featured_media":54067,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[226,223],"tags":[],"class_list":["post-54066","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ci","category-package-management"],"acf":[],"blog_post_summary":"<p>For a long while, Azure Pipelines users have been asking to improve performance on the hosted build agents by adding caching for common scenarios like package restore. The issue came up in a recent popular Hacker News item, so we wanted to share an update.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/54066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/734"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=54066"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/54066\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/54067"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=54066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=54066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=54066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}