Note: Because this is an ongoing series, viewers will not receive a certificate of completion.
Skill Level Intermediate
- [Instructor] We can set up continuous delivery from an existing project by going into Visual Studio and adding it to source control. I'm gonna add this project to source control by using GIT and then publishing it into a Team Services. So I've got a Team Services account, so I'm gonna click on the Publish GIT Repo, which then, let's me go out, pick the project I want to put this into. We'll go down to our LI Demos in Visual Studio, we're gonna put this into a repository called the Quick Demo site, and we'll click on publish the repository.
This then will add the code to Team Services, and then synchronize the code. Now that I've done that, I can go into continuous delivery and create build and release definitions. I'm gonna do this using the master branch, in this case, although, if we had other branches, we could trigger on that. Pick your subscription and where you want to publish this too. I'm gonna send this to the existing app service that we already created. The application service is going to be in here at my quick tips site.
Say okay, and what it's going to do next is go out and create the build and release pipelines. If I open the output window, I can watch it create the build and release definitions. Takes a couple minutes, but we'll speed it up, and now that they've been created, you can go out and click on the team project and be able to see these. Click on the build definition, for instance, which will open up in Visual Studio, that build definition.
If you click on edit, you can actually see what this definition looks like, and in here, you'll see that it added a NuGet restore, build the solution, test the assemblies, and then publish the symbols and the artifacts out, and in the releases, it added a release definition, as well. For the quick tip CD site. If we added this. You'll see that this has a build and a release, and going into the DEV environment, it's got a publish of the app service, and once that's done, it will actually go through and do the build and the release, which means that if we were to go into our project and make a change to it and then commit, those changes will get published up into the cloud.