1. Нам важно Ваше мнение!
    и обсуждайте вместе! Нажимайте "мне нравится" и рекомендуйте друзьям ;)
    Понравилось тема? Напишите в ней свой отзыв.
    Считаете что тема не достаточно полно раскрыта? Расскажите свою точку зрения!
    С Вашей помощью сделаем форум еще лучше!
SHALOMEn

chernobyl ukraine - REMMONT.COM

Тема в разделе 'Свободное общение и OFF-топик', создана пользователем SHALOMEn, 19 май 2021.

  1. SHALOMEn

    SHALOMEn Member

    Devops yaml - Рдуард Кабринский


    <h1>Devops yaml</h1>
    <p>[youtube]</p>
    Devops yaml <a href="http://remmont.com">World news today live</a> Devops yaml
    <h1>Solving the looping problem in Azure DevOps Pipelines</h1>
    <p>What should you do if you want to have a Pipelines job that loops based on dynamic inputs? Working around this problem has always been a pet peeve of mine - luckily today we?ve got options! Three in total to be precise, with different degree of difficulty.</p>
    <p>One of them is the simplest and has been around for ages: embed what you need to do in a script. Try to split the problem down to the lowest common denominator, and run the script. I just did this in a situation where we needed to run a non-predictable number of SonarQube scans as part of a CI build. We had the whole codebase in the branch (because reasons?), and based off the standard folder structure used by the projects I put together a script that runs the SonarQube scanner based on the number of plugins changed in a certain commit.</p>
    <p>If you think about that, it?s a very basic challenge. The <em>problem</em> (I don?t even want to call it as such, but still a challenge regardless) is that there is no built-in facility for such a concept, hence I had to improvise.</p>
    <p>The second one is using a build definition to be used as a template. You can trigger a dynamic number of these from another build (with a REST API call) that acts as orchestrator. This is slightly harder, but it allows for the GUI-based definitions to be used as templates so you can re-use what you have and you know already.</p>
    <p>The third (and better) way of doing so comes with the YAML pipelines: the <em>each</em> expression.</p>
    <p><em>Each</em> in YAML is equivalent to a for loop. So you can create a template which will have a set of actions, and pass parameters across during your build. YAML is looser than a GUI-based build definition IMHO, so it allows for something like this:</p>
    <p style="clear: both">template.yml: <img style="float: left; margin: 0 10px 5px 0;" src="https://mattvsts.github.io/images/posts/20190504.2.png" /></p>
    <p style="clear: both">azure-pipelines.yml: <img style="float: left; margin: 0 10px 5px 0;" src="https://mattvsts.github.io/images/posts/20190504.1.png" /></p>
    <p>Doing this will create two inline script task totally on the fly:</p>
    <p style="clear: both"><img src="https://mattvsts.github.io/images/posts/20190504.3.png" /></p>
    <p>It is a very elegant solution that solves the looping problem in the first place, but of course it has a steeper learning curve.</p>
    <p>Regardless of what you choose, the flexibility of the platform is at such a level that anybody can find the solution which fits best given a problem. And it was good fun exploring them throughout :)</p>
    <h2>Devops yaml</h2>

    <h3>Devops yaml</h3>
    <p>[youtube]</p>
    Devops yaml <a href="http://remmont.com">Latest it news</a> Devops yaml
    <h4>Devops yaml</h4>
    What should you do if you want to have a Pipelines job that loops based on dynamic inputs?Working around this problem has always been a pet peeve of mine - l...
    <h5>Devops yaml</h5>
    Devops yaml <a href="http://remmont.com">Devops yaml</a> Devops yaml
    SOURCE: <h6>Devops yaml</h6> <a href="https://dev-ops.engineer/">Devops yaml</a> Devops yaml
    #tags#[replace: -,-Devops yaml] Devops yaml#tags#
    https://ssylki.info/?who=realestate.remmont.com/1697 https://ssylki.info/?who=term-insurance.remmont.com https://ssylki.info/?who=1-bedroom-apartment-for-rent.remmont.com https://ssylki.info/?who=remmont.com/maryland-department-of-health-video https://ssylki.info/?who=realty.remmont.com

Поделиться этой страницей