Templates in Azure Pipelines: What, Why, and How

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มิ.ย. 2024
  • 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: th-cam.com/users/CoderDave?sub...
    _______________
    👕GET MY MERCH: geni.us/cdmerch
    🔮TOOLS I USE
    ► Twingate - Connect to your Private Resources SECURELY: geni.us/twingate
    ► TubeBuddy - #1 TH-cam 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 TH-cam: 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
    @CoderDave  3 ปีที่แล้ว

    ✨ *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
    @Chatsworth1979 3 ปีที่แล้ว +4

    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
    @schedarr 3 ปีที่แล้ว

    That is exactly what I needed yesterday, great timing.

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว +1

      Glad it helped ☺️

  • @Renn_lab
    @Renn_lab ปีที่แล้ว

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

    • @CoderDave
      @CoderDave  ปีที่แล้ว

      Glad you think so!

  • @serenaS8406
    @serenaS8406 ปีที่แล้ว

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

    • @CoderDave
      @CoderDave  ปีที่แล้ว

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

  • @danakm229
    @danakm229 2 ปีที่แล้ว

    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?

  • @priyankaagarwal4126
    @priyankaagarwal4126 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      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
    @marcoparenzan 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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.

  • @AkshayKumar-re3bf
    @AkshayKumar-re3bf ปีที่แล้ว +1

    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 :)

  • @sahasra8173
    @sahasra8173 ปีที่แล้ว +1

    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...

  • @drreaux
    @drreaux 3 ปีที่แล้ว +2

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

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว +2

      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
    @bharathinayak5802 2 ปีที่แล้ว +1

    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 11 หลายเดือนก่อน

    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 ปีที่แล้ว +2

    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 :)