Azure DevOps pipeline: Create a .NET build pipeline (CI/CD YAML tutorial)

preview_player
Показать описание
This video will look at creating an Azure DevOps pipeline with .NET.

In this beginners tutorial, we'll show you how to checkout an ASP.NET Core application from GitHub to use in Azure Pipelines.

From there, we'll show you how to code a build pipeline using YAML, which can be used for CI/CD.

We'll have a look at how to setup the steps and the tasks within it. The tasks involve how to restore NuGet packages, build an application, run tests and publish an application to an artifacts file.

This demo will also show you how to trigger a build, and setup environment variables that can be used as part of your YAML script.

💻 Download the code example for this demo 💻

🎥 What is Azure DevOps? 🎥

🎥 .NET CI/CD with Azure playlist 🎥

📖 Learn .NET and C# with our online courses 📖

► More information:

► Chapters
0:00 Coming up...
0:11 Azure Pipelines for CI/CD
0:41 Dependency injection course
0:51 .NET project overview
1:20 Create build pipeline
1:56 Add build pipeline parameters
3:33 Add tasks to build pipeline
8:57 Run build pipeline
9:38 What do you like about Azure DevOps?

#Azure #Pipelines #CICD
Рекомендации по теме
Комментарии
Автор

Thanks. Many years ago I used Jenkins but I didn't want to install it on my Azure VM so I started writing a PowerShell script on my VM to:

- connect to my repo
- pull code
- move the built files to IIS directory

Problem is I had to build my projects locally first and include them in source so I started thinking I can install MSBuild and Node on my VM and use the PowerShell to build my dotnet and Node project.

Then I remembered Azure DevOps and found this...
Thanks a lot. This worked first time for me.

Andy-sipl
Автор

You are incredibly helpful. My employer and I thank you!!

austinwhite
Автор

Thanks very much. Very helpful and straight to the point

adewaleadisa
Автор

I love your presentation. Thanks for this. New subscriber here

godwinyoh
Автор

The best video, that's all I can say

azarielmochusi
Автор

my problem with pipelines is the stages and tasks, there is no stable rules, everyone reference to projects like they want, put them in variables or references to everything that contains .csproj for example, i will say that the problem is more with configurations standards than understanding what are pipelines used for, i hope some of you will get what i’m saying, btw thank you your courses are incredible

sidisidahmed
Автор

You have a new subscriber! Thank you for your video

userhjg
Автор

Amazing. Can you also do the same for Golang, Python, nodejs applications nobody did those by one YouTuber if you can awaiting and useful content. Thank a lot Sir

hiandhra
Автор

Doubt please, Did we use same YAML file tasks for .NET and .NET Core, Is they are same or different .

sivas
Автор

Thanks for the video. I see that you had put the trigger to none. What would be the code for trigger if we have any check in each and every time in our code ? The build pipelines will be created each and every time dynamically and executes it ?

balajisairamnarasimhan
Автор

Thanks a lot
where i can find the variables values?

opaida.mansour
Автор

Okay so I followed this to the letter. The only thing I changed was the vmImage is ubuntu-latest in my case. I also updated the variables to match my .sln and .csproj files, however I am not seeing any artifacts being created. When it gets to the "Publish build artifacts" step I see an error stating

##[warning]Directory '/home/vsts/work/1/a' is empty. Nothing will be added to build artifact 'AzureTestProject'.

I have been banging my head against a wall trying to get this to work every day all week now. Any tips would be super appreciated. I will buy you a beer right now

jimcopeland
Автор

What's the difference between Publish vs Publish Build Artifacts task?

beingrandom
Автор

Hi can you give me the .net sample code repo for practice CI CD
it would be helpful to me

Poojithadasharadhi
Автор

Hi there, I've been trying to recreate and run this pipeline but am facing errors. The one error I keep getting is: Dotnet command failed with non-zero exit code on the following projects : This error pops up in the Test task. I've emulated what you've done and also referred to the updated changes on Github. Are you able to help?

toniCbenn
Автор

Were you not supposed to add the build task aswell ?

kubritish
Автор

Is this works on .net framework project

PraveenKumar-hvqu
Автор

i feel your face in full screen very intrusive, please stop doing that, but thanks for the rest ! :)

Ris-vw
Автор

Hi sir i need your LinkedIn id . I need your help please provide me i will ping you. Just some doubts to clarify

deva_