Templates in Azure Pipelines: What, Why, and How

Ғылым және технология

This is an Introduction to YAML Templates in Azure Pipelines.
Templates in Azure Pipelines are very powerful tools, that allow you to reuse your code in multiple Azure Pipelines.
Do you want to know how to use Pipelines template? We will answer the most common questions about Templates in Azure Pipelines: What, Why, and How
🌟EXCLUSIVE CONTENT🌟
Do you want to access exclusive content, live chats and Q&As, polls, and even 1:1 calls with me? Join my Patreon: / coderdave
🆘 NEED HELP? 🆘
Book a 1:1 Consultation with CoderDave: geni.us/cdconsult
🙏🏻SUPPORT THE CHANNEL🙏🏻
Buy me a coffee: www.buymeacoffee.com/CoderDave
PayPal me donation: paypal.me/dabenveg
💬JOIN THE COMMUNITY
► Website: coderdave.io
► Discord: geni.us/cddiscord
► Newsletter: coderdave.io/newsletter
► Blog: dev.to/n3wt0n
► GitHub: github.com/n3wt0n
► Twitter: / davidebenvegnu
► Facebook: / coderdaveyt
🎥VIDEOS
► Pipelines Gates and Checks Deep Dive: • Azure DevOps Environme...
► Azure Pipelines - Classic vs YAML: • Azure Pipelines: Class...
► Azure Pipelines Triggers series: • Azure Pipelines Trigge...
⏲TIMESTAMPS
0:00 Intro
0:26 What are YAML Templates
1:37 Why YAML Templates - Alignment
2:14 Consistency and Speed
3:09 Centralized Editing
3:38 Simplicity
4:00 Using Steps, Jobs, and Stages Templates
8:28 Passing Parameters to a Template
10:22 Parameters from Output Variables
12:04 Conclusions
12:26 Bloopers
🎤PODCAST: geni.us/cdpodcast
❓QUESTIONS?
Have a question about DevOps, Cloud, Coding, or Anything Else? Post in comments section of this video!
🔴SUBSCRIBE to CoderDave here: kzread.info?sub...
_______________
👕GET MY MERCH: geni.us/cdmerch
🔮TOOLS I USE
► Twingate - Connect to your Private Resources SECURELY: geni.us/twingate
► TubeBuddy - #1 KZread channel Management tool (FREE): www.tubebuddy.com/CoderDave
► Moosend - Free Newsletter and Automation Platform: geni.us/moosend
📸🖥️GEAR AND SOFTWARE
► Music - Epidemic Sound (Get 30 days free): epidemicsound.com/referral/zf...
► Editing - Adobe Premiere Pro: geni.us/AdobeVideo
► Gear I Use for KZread: kit.co/CoderDave/gear-i-use-f...
► Gear I Use for Streaming: kit.co/CoderDave/gear-i-use-f...
► My Computer Setup: kit.co/CoderDave/main-compute...
► Full office setup: github.com/n3wt0n/work-from-h...
Disclaimer:
Some product links are affiliate links which means if you buy something I'll receive a small commission at no additional cost to you.
As an Amazon Associate, I earn from qualifying purchases.

Пікірлер: 26

  • @CoderDave
    @CoderDave3 жыл бұрын

    ✨ *Question of the day* ✨What do you use or plan to use Azure Pipelines Templates for? *SUPPORT THE CHANNEL :* Buy me a coffee: www.buymeacoffee.com/CoderDave Join my Patreon: www.patreon.com/CoderDave PayPal me donation: paypal.me/dabenveg

  • @Chatsworth1979
    @Chatsworth19793 жыл бұрын

    Now I understand why YAML build files are so important, and why the "visually defined" build definitions I like so well on Azure Devops are not the preferred way. Nice vid, +1, thanks.

  • @schedarr
    @schedarr3 жыл бұрын

    That is exactly what I needed yesterday, great timing.

  • @CoderDave

    @CoderDave

    3 жыл бұрын

    Glad it helped ☺️

  • @Renn_lab
    @Renn_lab Жыл бұрын

    Your videos are the best! Always on point. Thank you

  • @CoderDave

    @CoderDave

    Жыл бұрын

    Glad you think so!

  • @serenaS8406
    @serenaS84062 жыл бұрын

    It's super useful to learn yaml Azure Pipelines. Will follow the next classes for sure.

  • @CoderDave

    @CoderDave

    2 жыл бұрын

    Great to hear! I have more videos that go through the YAML Pipelines in geenral, hope you will enjoy them as well

  • @sahasra8173
    @sahasra8173 Жыл бұрын

    How to define a template if it is used across repositories? Seems templates need to be stored in one specific repository. My intention is to achieve something similar to task group which is stored in server and can be used across pipelines...

  • @danakm229
    @danakm2292 жыл бұрын

    HI Dave, excellent video series here! I have a use case where I have a project with several repositories, each repo with their own build pipelines that publish artifacts. I want a single release pipeline, that downloads artifacts from all of my other repositories, and on run-time I want to pick and choose which artifacts would I like to create a release for. Can you please share what would be a good approach to do this?

  • @AkshayKumar-re3bf
    @AkshayKumar-re3bf Жыл бұрын

    Hi Dave, can you do another video on checkout to other repo, i saw your 3min video on this but i got errors after the checkout job(no files matching), can you do a brief video on how to do check out. that will be very much helpful.. Thanks dave for all your content

  • @CoderDave

    @CoderDave

    Жыл бұрын

    Hey, not sure what error you got... but that video covers everything there is on how to checkout from another repo... after adding the repo as resource, as I explain in that video, all you have to do it checkout with the label you added to the resource... and that's it :)

  • @priyankaagarwal4126
    @priyankaagarwal41262 жыл бұрын

    Was looking forward for the deep dive video .. can we assign values to parameters at runtime . ?

  • @CoderDave

    @CoderDave

    2 жыл бұрын

    Sorry, I still have that video in the backlog. About the parameters, absolutely. You can use variables to assign values to parameters

  • @pshah2952
    @pshah2952 Жыл бұрын

    Hi Dave, Thanks great start-up for YAML templates. I like the way you explain the complex topic in simplified way. I was looking for all your videos on YAML and also on moving existing application from VM to docker containers, I subscribed to your channel but could not locate your videos specific to these subjects. Do you have or can create a playlist for both topics? I also have access to LinkedIn learning and PluralSight. If you can recommend something there or if you have something like that on Channel9, please let me know.

  • @CoderDave

    @CoderDave

    Жыл бұрын

    Thanks! I don't have specific playlist of YAML pipelines, but I will see what I can do. I do have however 2 playlist, on for Pipelines Triggers and one for Pipelines Environments which you probably will find interesting.

  • @marcoparenzan
    @marcoparenzan3 жыл бұрын

    Great video. One question. As a company use and reuse templates in many different projects, where do they typically collect templates? Do they use one specific project in a collection to store all templates? Or is there any other practice?

  • @CoderDave

    @CoderDave

    3 жыл бұрын

    Good question! and the answer is, as usual, it depends :) if the templates are relative only to a specific project, then they will live in that project (in the same or a different repo). But if the templates my be applied to multiple projects, then they can be stored in a separate Team Project available to the whole org.

  • @drreaux
    @drreaux3 жыл бұрын

    Can you reference a template file from other repos? (Like a master template repo)

  • @CoderDave

    @CoderDave

    3 жыл бұрын

    You sure can. But the mechanism is a little different because you have to use resources instead. I had few people asking me this, I may make a video about it

  • @bharathinayak5802
    @bharathinayak58022 жыл бұрын

    how can i download above yaml files ?

  • @CoderDave

    @CoderDave

    2 жыл бұрын

    Sorry, They are not in a public repo :) but it should be very easy to create your own templates :)

  • @JoshStaffordD
    @JoshStaffordD Жыл бұрын

    Thanks, that was really helpful. A tip for you though, template is pronounced with a schwa sound not a long a. So it rhymes with flit, and doesn't sound like plate. Though perhaps in British english, that would be correct.

  • @mr.hgorgan1812
    @mr.hgorgan1812 Жыл бұрын

    man this is way more complicated than it seems, it's giving me headaches aaarghhhh. But thanks for the video tho

  • @CoderDave

    @CoderDave

    Жыл бұрын

    It's not the easiet thing to do, but when you master it, it can really help :)

Келесі