russian marriage agency - REMMONT.COM

Всё подряд, без разбора, но про САМБО. Разбор завалов по ходу.
Ответить
DAVIDEa
km
km
Сообщения: 557
Зарегистрирован: 25 июл 2019, 22:22
Откуда: USA
Контактная информация:

russian marriage agency - REMMONT.COM

Сообщение DAVIDEa » 18 май 2021, 10:21

Azure devops badges - Kabrinskiy Eduard


<h1>Azure devops badges</h1>
<p>[youtube]</p>
Azure devops badges <a href="http://remmont.com">Latest breaking news</a> Azure devops badges
<h1>Scott Hanselman</h1>
<h2>Azure DevOps Continuous Build/Deploy/Test with ASP.NET Core 2.2 Preview in One Hour</h2>
<p style="clear: both"><img style="float: left; margin: 0 10px 5px 0;" src="https://hanselmanblogcontent.azureedge. ... humb_2.png" />I've been doing Continuous Integration and Deployment for well over 13 years. We used a lot of custom scripts and a lovely tool called CruiseControl.NET to check out, build, test, and deploy our code.</p>
<p>However, it's easy to get lulled into complacency. To get lazy. I don't set up Automated Continuous Integration and Deployment for all my little projects. But I should.</p>
<p>I was manually deploying a change to my podcast website this evening via a git deploy to Azure App Service. Pushing to Azure this way via Git uses "Kudu" to actually build the site. However, earlier this week I was also trying to update my site to .NET Core 2.2 which is in preview. Plus I have Unit Tests that aren't getting run during deploy.</p>
<p>So look at it this way. My simple little podcast website with a few tests and the desire to use a preview .NET Core SDK means I've outgrown a basic "git push to prod" for deploy.</p>
<p>I remembered that <strong>Azure DevOps</strong> (formerly VSTS) is out and <strong>offers free unlimited minutes for open source projects.</strong> I have no excuse for my sloppy builds and manual deploys. It also has unlimited free private repos, although I'm happy at GitHub and have no reason to move.</p>
<p>It usually takes me 5-10 minutes for a manual build/test/deploy, so I gave myself an hour to see if I could get this same process automated in Azure DevOps. I've never used this before and I wanted to see if I could do it quickly, and if it was intuitive.</p>
<p>Let's review my goals.</p>
<p><ul>
<li>My source is in GitHub</li>
<li>Build my ASP.NET Core 2.2 Web Site <ul>
<li>I want to build with .NET Core 2.2 which is <em>currently</em> in Preview.</li>
</ul>
</li>
<li>Run my xUnit Unit Tests <ul>
<li>I have some Selenium Unit Tests that can't run in the cloud (at least, I haven't figured it out yet) so I need them skipped.</li>
</ul>
</li>
<li>Deploy the resulting site to product in my Azure App Service</li>
</ul>
</p>
<p>Cool. So I make a project and point Azure DevOps at my GitHub.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>They have a number of starter templates, so I was pleasantly surprised I didn't need manually build my Build Configuration myself. I'll pick ASP.NET app. I could pick Azure Web App for ASP.NET but I wanted a little more control.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>Now I've got a basic build pipeline. You can see it will use NuGet, get the packages, build the app, test the assemblies (if there are tests. more on that later) and the publish (zip) the build artifacts.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>I then clicked Save & Queue. and it failed. Why? It says that I'm targeting .NET Core 2.2 and it doesn't support anything over 2.1. Shoot.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>Fortunately there's a pipeline element that I can add called ".NET Core Tool Installer" that will get specific versions of the .NET Core SDK.</p>
<blockquote><p><strong>NOTE:</strong> I've emailed the team that ".NET Tool Installer" is the wrong name. A .NET Tool is a totally different thing. This task should be called the ".NET Core SDK Installer." Because it wasn't, it took me a minute to find it and figure out what it does.</p></blockquote>
<p>I'm using the SDK Agent version <em>2.22.2.100-preview2-009404</em> so I put that string into the properties.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>At this point it builds, but I get a test error.</p>
<p>There's two problems with the tests. When I look at the logs I can see that the "testadapter.dll" that comes with xunit is mistakenly being pulled into the test runner! Why? Because the "Test Files" spec includes a VERY greedy glob in the form of **\*test*.dll. Perhaps testadapter shouldn't include the word test, but then it wouldn't be well-named.</p>
<p>My test DLLs are all named with "tests" in the filename so I'll change the glob to "**\$(BuildConfiguration)\**\*tests*.dll" to cast a less-wide net.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>I have four Selenium Tests for my ASP.NET Core site but I don't want them to run when the tests are run in a Docker Container or, in this case, in the Cloud. (Until I figure out how)</p>
<p>I use SkippableFacts from XUnit and do this:</p>
<p>Don't tease me. I like it. Now I can skip tests that I don't want running.</p>
<p>Now my tests run and I get a nice series of charts to show that fact.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>I have it building and tests running.</p>
<p>I could add the Deployment Step to the Build but Azure DevOps Pipelines includes a better way. I make a Release Pipeline that is separate. It takes Artifacts as input and runs n number of Stages.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>I take the Artifact from the Build (the zipped up binaries) and pass them through the pipeline into the Azure App Service Deploy step.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>Here's the deployment in progress.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>Cool! Now that it works and deploys, I can turn on Continuous Integration Build Triggers (via an automatic GitHub webhook) as well as Continuous Deployment triggers.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_1.png" /></p>
<p>Azure DevOps even includes badges that I can add to my readme.md so I always know by looking at GitHub if my site builds AND if it has successfully deployed.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_3.png" /></p>
<p>Now I can see each release as it happens and if it's successful or not.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... humb_2.png" /></p>
<p>To top it all off, now that I have all this data and these pipelines, I even put together a nice little dashboard in about a minute to show Deployment Status and Test Trends.</p>
<p style="clear: both"><img src="https://hanselmanblogcontent.azureedge. ... _thumb.png" /></p>
<p>When I combine the DevOps Dashboard with my main Azure Dashboard I'm amazed at how much information I can get in so little effort. Consider that my podcast (my little business) is a one-person shop.</p>
<p style="clear: both"> <img src="https://hanselmanblogcontent.azureedge. ... mage_9.png" /></p>
<p>And now I have a CI/CD pipeline with integrated testing gates that deploys worldwide. Many years ago this would have required a team and a lot of custom code.</p>
<p>Today it took an hour. Awesome.</p>
<p>I check into GitHub, kicks off a build, tests, emails me the results, and deploys the website if everything is cool. Of course, if I had another team member I could put in deployment gates or reviews, etc.</p>
<p><strong>Sponsor:</strong> Copy: Rider 2018.2 is here! Publishing to IIS, Docker support in the debugger, built-in spell checking, MacBook Touch Bar support, full C# 7.3 support, advanced Unity support, and more.</p>
<h4>About Scott</h4>
<p>Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.</p>
<h2>Azure devops badges</h2>

<h3>Azure devops badges</h3>
<p>[youtube]</p>
Azure devops badges <a href="http://remmont.com">Top news headlines</a> Azure devops badges
<h4>Azure devops badges</h4>
I&#x27;ve been doing Continuous Integration and Deployment for well over 13 years. ...
<h5>Azure devops badges</h5>
Azure devops badges <a href="http://remmont.com">Azure devops badges</a> Azure devops badges
SOURCE: <h6>Azure devops badges</h6> <a href="https://dev-ops.engineer/">Azure devops badges</a> Azure devops badges
#tags#[replace: -,-Azure devops badges] Azure devops badges#tags#
https://ssylki.info/?who=trulia-rental.remmont.com https://ssylki.info/?who=real-estate-ag ... emmont.com https://ssylki.info/?who=remmont.com/ca ... r-supplies https://ssylki.info/?who=life-insurance ... emmont.com https://ssylki.info/?who=remmont.com/he ... eb-careers

Ответить

Вернуться в «Общие вопросы | General questions»