Тёмный

Continuous Integration Builds in Azure DevOps- A TimCo Retail Manager Video 

IAmTimCorey
Подписаться 416 тыс.
Просмотров 26 тыс.
50% 1

In this video, we are going to add continuous integration by setting up our Azure DevOps to build our source code every time we check it in. This way, just committing and pushing our code will be enough to ensure that the application builds and verifies our code before we continue.
** TimCo source code now at: www.iamtimcorey.com/courses/b...
Full Courses: www.iamtimcorey.com
Mailing List: signup.iamtimcorey.com/
One-off tutorials are awesome but they aren't the only thing you should be doing to learn C#. Another vital part of learning is learning how to put it all together. This interactive course is all about putting the pieces together. You can watch each video on its own or you can watch them in order and see a bigger picture. The choice is yours.
This course focuses on real-world development. As such, we are simulating that we work for TimCo Enterprise Solutions on a brand new product, the TimCo Retail Manager. Just like in the real world, we are starting out with one set of requirements but know that over time they will change.

Опубликовано:

 

29 мар 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 74   
@user-hh5ru8jz3j
@user-hh5ru8jz3j 3 года назад
오늘도 유익한 영상 감사합니다 형님! 중간에 권한 문제 때문에 조금 고생했지만 전체적인 흐름을 알 수 있었습니다! 오늘도 좋아요 댓글하고 갑니다~!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 года назад
We are glad it helped
@robertgemrot1373
@robertgemrot1373 3 года назад
Yes, there is a new permission problem (pipelines won't run, they are only queued). If anyone has the same problem, it is recommended to write an email to Microsoft in which you ask them to give you the free tier of Azure Pipelines.
@mohammednhne929
@mohammednhne929 3 года назад
Thank you for a fascinating video.
@IAmTimCorey
@IAmTimCorey 3 года назад
You are welcome.
@henningentz1604
@henningentz1604 4 года назад
Hi Tim, your channel is great. I went through your TimCo Retail Manager playlist in 4 days. By the time the corona crisis is over, I will probably have watched every single video on your channel. Stay healthy.
@IAmTimCorey
@IAmTimCorey 4 года назад
Wow, that's fast. I'm glad you are enjoying the content.
@SunnyTomcat1
@SunnyTomcat1 4 года назад
And I thought my 3 weeks are fast 😂
@buddysteve5543
@buddysteve5543 3 года назад
Watching at 1.5x the speed also helps! He talks too slow for me! LoL!
@joelvilabringuez7162
@joelvilabringuez7162 Год назад
thanks for the contribution.
@IAmTimCorey
@IAmTimCorey Год назад
You are welcome.
@AnaHelena
@AnaHelena 4 года назад
Great video! Thanks
@IAmTimCorey
@IAmTimCorey 4 года назад
You are welcome.
@johncerpa3782
@johncerpa3782 4 года назад
Great video
@IAmTimCorey
@IAmTimCorey 4 года назад
Thank you!
@Brickscrap
@Brickscrap 3 года назад
Tim, thank you as always! I ran into some issues getting mine to build, and had to swap NuGet out for a "dotnet restore" command. For some reason, NuGet wasn't picking up any of the .NET Core dependencies, and was throwing up: "The nuget command failed with exit code(1) and error(NU1202: Package Microsoft.EntityFrameworkCore.SqlServer 5.0.4 is not compatible with net50 (.NETFramework,Version=v5.0). Package Microsoft.EntityFrameworkCore.SqlServer 5.0.4 supports: netstandard2.1 (.NETStandard,Version=v2.1) " But as I say, removing NuGet from the jobs list, and replacing it with a "dotnet restore" resolved my problems, hopefully this helps anyone else who comes across the same issue. Maybe it's because I jumped the gun and changed my API project to .NET 5 too early?
@SuperAndrea000000
@SuperAndrea000000 4 года назад
Beautiful series, I'm following it from the beginning and I find it very useful. I was wondering... Will you keep using EF to manage users accounts and login/registration? I'd be very interested in seeing how to keep using Microsoft Identity system but without Entity Framework.
@IAmTimCorey
@IAmTimCorey 4 года назад
I will use EF for that portion only. Trying to replace it is painful and dangerous so I leave it alone.
@jeffgolden3882
@jeffgolden3882 3 года назад
Hi Tim, Thanks for these videos I have been learning a lot and really enjoying them. I wanted to mention that it seems that new Microsoft DevOps policy makes this video a little less simple. You now must request a parallelism grant before you can use the Pipelines. I'm not sure how long that process takes but I'm curious if I could continue the course without doing these parts until the grant is provided -- or if I should just wait for that grant to happen first?
@IAmTimCorey
@IAmTimCorey 3 года назад
Yep, you can. The issue is that people were abusing the build system to mine cryptocurrency so additional safeguards had to be put in place.
@baluanandnageswaran8816
@baluanandnageswaran8816 2 года назад
Hi Tim. Your videos are awesome. Thanks for sharing the videos. I am trying to setup Azure Devops CI in my trial version for learning it but I am facing issue "no hosted parrallelism has been purchased" whenever I build pipeline in both private and public projects. Could you please clarify my query ?
@IAmTimCorey
@IAmTimCorey 2 года назад
That’s a new check they put in to protect themselves against Bitcoin miners.
@hellyworld9325
@hellyworld9325 3 года назад
At the end, after running Build on Pipeline and checking my app, I log in and get Fatal Exception: Forbidden. Says JWTBearer was forbidden in Kestrel. Why?
@pedrobettt
@pedrobettt 2 года назад
Because of this video my job literally became editing pipelines in Azure DevOps. Going on half a year of nothing but YAML and failed tests. At least it's interesting, but I still blame you ;)
@IAmTimCorey
@IAmTimCorey 2 года назад
lol, well, I am glad I was able to increase your knowledge. Sorry about the headaches that came with it, though. 🙂
@karapelerin61
@karapelerin61 4 года назад
Thanks for great video. Why do you select "Commit Staged and Push", or wh do not you select "Commit and push" while pushing the code?
@IAmTimCorey
@IAmTimCorey 4 года назад
I typically try to do what I would normally do on a team. In a team environment, you want to make sure you have pulled the latest before you then push your code up so I do it in two steps. If you are a solo developer, you can commit and sync right away.
@katsmike853
@katsmike853 4 года назад
Awesome Vid. CI done.. lets go for CD. BTW.: Have we connected the EF database with the apps database? so when so when someone registers, the user info gets put in the apps database as well. Or are we going to do this differently ?
@IAmTimCorey
@IAmTimCorey 4 года назад
Right now we are doing that process manually but that is on the todo list to add people automatically (or create a management page for it).
@katsmike853
@katsmike853 4 года назад
@@IAmTimCorey Awesome!
@katsmike853
@katsmike853 4 года назад
@@IAmTimCorey I was wandering if we could do this by using an Azure function that triggers when new rows get added to the EF Database?
@fitzwilliamdarcy3328
@fitzwilliamdarcy3328 2 года назад
Hi Tim. Great video. Just to let you and other new viewers know that I encountered a problem where the build failed with "No hosted parallelism has been purchased or granted..." :-( It looks like from 08/28/2021, Microsoft has "temporarily disabled the free grant of parallel jobs for public projects and for certain private projects in new organizations. However, you can request this grant by submitting a request. Existing organizations and projects are not affected. Please note that it takes us 2-3 business days to respond to your free tier requests." I have submitted my request and keeping my fingers crossed. Will post an update on the request. Cheers
@IAmTimCorey
@IAmTimCorey 2 года назад
Yep, that's an issue because of people using free computing resources for bitcoin mining. They are working on ways to get back to the original setup while securing against illicit usage.
@fitzwilliamdarcy3328
@fitzwilliamdarcy3328 2 года назад
@@IAmTimCorey Hi Tim, I tried to run again today even though I didn't receive any notification from Microsoft and it was successful. Thank you Microsoft! Thanks for the great instruction, Tim.
@lightningbold1450
@lightningbold1450 4 года назад
Hey Tim, Would it be possible for you to give a roadmap of the planned paid courses you have for 2020 as well as a road map for the free content..It would be great if you could provide both ...😁 Perhaps exactly not a roadmap but Content you will be releasing this year. It would help everyone following you to have specific learning objectives♥️
@IAmTimCorey
@IAmTimCorey 4 года назад
That is tough to do, since the upcoming roadmap is always in flux. For example, I had a course I was going to release in early February that has been put on pause because of some major changes in the software it was based upon. Some of my upcoming courses are waiting to hear how the announcements go in May and again in November.
@ronbarybaryosef2412
@ronbarybaryosef2412 3 года назад
Hi Tim where you can download this AzureDev Ops user interface ? or it's just Site ? or you can see all of this using the VS 2019 ? thanks
@IAmTimCorey
@IAmTimCorey 3 года назад
Azure DevOps is an online-only tool. You can technically get the server edition (not free) and install it on a server on your network. It is still a web-based product, though. You just serve it locally.
@jaspercoleman3269
@jaspercoleman3269 Год назад
Thanks for a great series of videos, I always learn something new. I ran into an issue when running my pipeline, it is failing to build the Database project. Not sure if anyone else ran into this and found a solution. Thanks
@IAmTimCorey
@IAmTimCorey Год назад
It will work, so it is probably something in your configuration. Check out the error information and track it down from there.
@jaspercoleman3269
@jaspercoleman3269 Год назад
@@IAmTimCorey Thanks. I missed a change in my configuration. Got it working a bit ago.😄
@karlism.5604
@karlism.5604 Год назад
If you are getting "No hosted parallelism has been purchased or granted." then you need to apply via the link at the end of the error. No other ways if you wanna use the free tier. internet says that it takes up to 2 days to be confirmed.
@IAmTimCorey
@IAmTimCorey Год назад
That's a new check they put in place to prevent people from using the free tiers to mine crypto.
@bsuthar1109
@bsuthar1109 3 года назад
Hi Tim, Can we use .Net Obfuscation while creating Build?
@IAmTimCorey
@IAmTimCorey 3 года назад
We could, yes.
@pedroferreira9234
@pedroferreira9234 4 года назад
Tim please use dark mode, the white is killing my eyes xD, awesome video as always
@IAmTimCorey
@IAmTimCorey 4 года назад
Yeah it is pretty bright, isn't it. I just haven't switched it over yet.
@Lior_Banai
@Lior_Banai 4 года назад
What about unit tests and code coverage?
@IAmTimCorey
@IAmTimCorey 4 года назад
You can add that into the CI process as well. We currently do not have unit tests so there isn't anything to run. It is on the todo list.
@armin2506
@armin2506 4 года назад
Hi Tim, I unloaded and left the old TRMDataManager Project in the Solution. During build process, the build solution fails as it tries to include the unloaded project. Is there a way to leave the unloaded project in the solution but exclude it from CI process?
@IAmTimCorey
@IAmTimCorey 4 года назад
You would need to set that as a build argument in the CI process.
@luigiangelobuonarroti4110
@luigiangelobuonarroti4110 4 года назад
Did you ever get this figured out? I had an issue with the datamanger as well but that was because I hadn't pushed my changes to Azure after I unloaded the datamanager api so in the latest repo on azure it was still included. Is that possibly what's causing the issue for you?
@majule1
@majule1 4 года назад
Note: My 'Save and Run' created an endless spinning circle on Azure but when I refreshed the page after 5+ minutes, the Agent job 1 was completed successfully.
@IAmTimCorey
@IAmTimCorey 4 года назад
Azure is experiencing a very high load right now because everyone is working remotely. It may be that the background refresh timed out before it got the signal that it was done. It happens on the best of days. Glad you got it to work though.
@luigiangelobuonarroti4110
@luigiangelobuonarroti4110 4 года назад
Nice! Thank you for your comment that's where I'm stuck right now. About to hit refresh. Damn, so it failed for me and now the save and queue button is grayed out lol
@SunnyTomcat1
@SunnyTomcat1 4 года назад
Anyone else who's NuGet restore failed with this message? "##[error]The nuget command failed with exit code(1) and error(NU1102: Unable to find package Caliburn.Micro with version (>= 4.0.125-alpha)" I'm wondering why Tim did not get the message as we had a different source than NuGet for the Core version of Caliburn Micro. Still trying to find out.
@IAmTimCorey
@IAmTimCorey 4 года назад
We were using an alpha package. I believe they removed that specific package. However, they now have a new enough alpha version on NuGet itself. Just go to NuGet and update the version.
@SunnyTomcat1
@SunnyTomcat1 4 года назад
@@IAmTimCorey Wow! Quick response 👍 Thank you, Tim. And it's running now. And now I see I would have got the idea if I only had not stopped viewing this video, instead I started finding ways to fix it myself 🤦‍♂️🤣
@hellyworld9325
@hellyworld9325 3 года назад
Here's a note: I ran a first Build. It threw 5 errors saying that Microsoft.SDK was missing asset files and suggested that I run a NuGet Restore. I stopped it from running and looked over the Pipeline and changed literally NOTHING. I hit Run again and those 5 errors turned into Warnings and the Build Succeeded. So that's interesting.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 года назад
Very interesting - thanks for sharing. I may give others hope. - LOL
@visionmajor7300
@visionmajor7300 4 года назад
Docker next
@IAmTimCorey
@IAmTimCorey 4 года назад
Thanks for the suggestion.
@buddysteve5543
@buddysteve5543 3 года назад
I’m not understanding why I would pay Microsoft to build my project when I can just build it on my laptop for free! This whole integration process I’m failing to understand it’s real purpose and why building projects on my machine and deploying them is not good?
@IAmTimCorey
@IAmTimCorey 3 года назад
First of all, Azure DevOps is free for up to five users as long as your company makes less than $1 million per year. So, we aren't paying Microsoft anything for this. Second, building on your computer is a manual process. Manual processes mean mistakes. Yes, if you are thinking that a build is just you telling Visual Studio to build then there are no real steps to mess up. However, we aren't doing just that (and no production deployment is either). We are doing multiple build steps, and then we are going to deploy the produced files. We will also add layers of security, replacing connection strings, etc. during deployment. Doing things on your computer only works for you, it includes manual steps, and is prone to error. Having a build server makes the process automated, creating a repeatable, predictable, and safe process for building your software.
@deepakshrestha2672
@deepakshrestha2672 4 года назад
1st
@IAmTimCorey
@IAmTimCorey 4 года назад
I hope you enjoy it.
@deepakshrestha2672
@deepakshrestha2672 4 года назад
@@IAmTimCorey Yes i did :)
@sofianebm7492
@sofianebm7492 2 года назад
when recruiters ask to know Azure, they're talking about Azure DevOps?
@IAmTimCorey
@IAmTimCorey 2 года назад
Nope, Azure is a cloud platform. It has hundreds of services. Azure DevOps is just one. There is also Web Apps, Storage, Azure SQL, Functions, Azure Kubernetes Services, Azure Virtual Machines, and a LOT more. So when a recruiter asks if you know Azure, ask them what parts.