<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Azure DevOps on blog.ehn.nu</title><link>https://blog.ehn.nu/categories/azure-devops/</link><description>Recent content in Azure DevOps on blog.ehn.nu</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 19 Jan 2020 10:59:22 +0000</lastBuildDate><atom:link href="https://blog.ehn.nu/categories/azure-devops/index.xml" rel="self" type="application/rss+xml"/><item><title>Event-driven scripting in Kubernetes with Brigade</title><link>https://blog.ehn.nu/2020/01/event-driven-scripting-in-kubernetes-with-brigade/</link><pubDate>Sun, 19 Jan 2020 10:59:22 +0000</pubDate><guid>https://blog.ehn.nu/2020/01/event-driven-scripting-in-kubernetes-with-brigade/</guid><description>&lt;p&gt;In most projects that I’ve been part of, sooner or later the need for various types of automation jobs arises. For example cleaning up old files, moving database backups, running health checks or system tests and so on.&lt;/p&gt;
&lt;p&gt;Historically we’ve implemented these tasks using for example the Windows task scheduler, or through some custom Windows Service app. More recently, we’ve been using Azure Automation jobs for this. Sometimes it can also make sense to use CI/CD automation tools like Azure DevOps for these jobs.&lt;/p&gt;</description></item><item><title>Running Windows Container Build Agents for Azure Pipelines</title><link>https://blog.ehn.nu/2019/06/running-windows-container-build-agents-for-azure-pipelines/</link><pubDate>Thu, 20 Jun 2019 10:29:39 +0000</pubDate><guid>https://blog.ehn.nu/2019/06/running-windows-container-build-agents-for-azure-pipelines/</guid><description>&lt;p&gt;In &lt;a href="https://blog.ehn.nu/2019/01/creating-a-windows-container-build-agent-for-azure-pipelines/"&gt;a previous post&lt;/a&gt; I talked about how to create a build environment, including an Azure DevOps build agent, using Docker and Windows Containers. Using Dockerfiles, we can specify everything that we need in order to build and test our projects. Docker gives us Infrastructure as Code (no more snowflake build servers) and isolation which makes it easy to spin up multiple agents quickly on one or more machines without interfering with each other.&lt;/p&gt;</description></item><item><title>Accessing Azure Artifacts feed in a Docker build</title><link>https://blog.ehn.nu/2019/05/accessing-azure-artifacts-feed-in-a-docker-build/</link><pubDate>Mon, 27 May 2019 20:48:39 +0000</pubDate><guid>https://blog.ehn.nu/2019/05/accessing-azure-artifacts-feed-in-a-docker-build/</guid><description>&lt;p&gt;I’ve recently given talks at conferences and user groups on the topic of using Docker as a build engine, describing the builds using a Dockerfile. This has several advantages, such as fully consistent build no matter where you run it, no dependencies necessary except Docker.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Image result for docker" loading="lazy" src="https://www.docker.com/sites/default/files/social/docker_facebook_share.png"&gt;&lt;/p&gt;
&lt;p&gt;Some things become a bit tricker though, &lt;a href="https://blog.ehn.nu/2019/01/running-net-core-unit-tests-with-docker-and-azure-pipelines/"&gt;I’ve blogged previously&lt;/a&gt; about how to run unit tests in a Docker build, including getting the test results out of the build container afterwards.&lt;/p&gt;</description></item><item><title>Creating a Windows Container Build Agent for Azure Pipelines</title><link>https://blog.ehn.nu/2019/01/creating-a-windows-container-build-agent-for-azure-pipelines/</link><pubDate>Fri, 18 Jan 2019 12:57:46 +0000</pubDate><guid>https://blog.ehn.nu/2019/01/creating-a-windows-container-build-agent-for-azure-pipelines/</guid><description>&lt;p&gt;Having automated builds that are stable and predictable is so important in order to succeed with CI/CD. One important practice to enable this is to have a fully scriptable build environment that lets you deploy multiple, identical, build envionment hosts. This can be done by using image tooling such as Packer from HahsiCorp. Another option is to use Docker which is what I am using in this post.&lt;/p&gt;
&lt;p&gt;Using Docker will will crete a Dockerfile that specifies the content of the image in which builds will run. This image should contain the SDK’s and tooling necessary to build and test your projects. It will also contain the build agent for your favourite CI server that will let you spin up a new agent in seconds using the docker image.&lt;/p&gt;</description></item><item><title>Running .NET Core Unit Tests with Docker and Azure Pipelines</title><link>https://blog.ehn.nu/2019/01/running-net-core-unit-tests-with-docker-and-azure-pipelines/</link><pubDate>Fri, 11 Jan 2019 15:47:23 +0000</pubDate><guid>https://blog.ehn.nu/2019/01/running-net-core-unit-tests-with-docker-and-azure-pipelines/</guid><description>&lt;p&gt;Using Docker for compiling your code is great since that guarantees a consistent behaviour regardless of where you are building your code. No matter if it’s on the local dev machine or on a build server somewhere. It also reduces the need of installing any dependencies just to make the code compile. The only thing that you need to install is Docker!&lt;/p&gt;
&lt;p&gt;When you create a ASP.NET Core project in Visual Studio and add Docker support for it you will get a Docker file that looks something like this:\&lt;/p&gt;</description></item></channel></rss>