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

High Point : azure agile - Kabrinskiy Eduard

Тема в разделе 'Горячие новости для тех кто следит за собой', создана пользователем IowaEn, 19 май 2021.

  1. IowaEn

    IowaEn Member

    Eduard Kabrinskiy - Azure vsts devops - Рдуард Кабринский


    <h1>Azure vsts devops</h1>
    <p>[youtube]</p>
    Azure vsts devops <a href="http://remmont.com">Current national news</a> Azure vsts devops
    <h1>Exclude/Skip files in VSTS Build and release</h1>
    <p>We are in process of creating architecture for VSTS CI/CD to deploy our web app to our Azure App Services. We want to exclude the web.config while deploying it to the Azure server as we are directly modifying the web.config on the different environment. CI Tasks looks like this: CI Taks</p>
    <p>CD Task: Deploy Azure App Service I am aware of other ways of updating the web.config https://docs.microsoft.com/en-us/vsts/build-release/tasks/transforms-variable-substitution, but in our case we want to skip the web.config file. I couldn?t find the option to skip file in during release in VSTS as mentioned in this thread How do I exclude the .cs files within an artifact from a vs-team-services CI build? Is there a way to exclude certain files while building and deploying the release?</p>
    <p style="clear: both"><img src="https://i.stack.imgur.com/vhi6N.jpg" /></p>
    <h2>4 Answers 4</h2>
    <p style="clear: both">Added -skip:eek:bjectName=filePath,absolutePath=web\.config in <strong>additional arguments</strong>. This skips updating the <strong>web.config</strong> file during deployment. <img style="float: left; margin: 0 10px 5px 0;" src="https://i.stack.imgur.com/cX7Ra.png" /></p>
    <p style="clear: both"><img src="https://i.stack.imgur.com/vhi6N.jpg" /></p>
    <p>You can exclude the web.config before publishing artifacts in your <strong>build definition</strong>: copy the web packages files to a directory (such as $(build.binariesdirectory) ), then copy the files exclude web.config to another folder (such as $(Build.ArtifactStagingDirectory)/package ), and zip the files under $(Build.ArtifactStagingDirectory)/package . And finally publish the zip file as build artifacts.</p>
    <p>Details changes in the build definition as below:</p>
    <p>Change the <strong>MSbuild arguments</strong> as /p:OutDir="$(build.binariesdirectory)\\" in <strong>Visual Studio Build task</strong>.</p>
    <p style="clear: both"><img src="https://i.stack.imgur.com/BMc6v.png" /></p>
    <p>Add a <strong>Copy Files task</strong> after Visual Studio Build task. Settings for this task as below:</p>
    <p style="clear: both"><img src="https://i.stack.imgur.com/GhkRE.png" /></p>
    <p>Add <strong>Archive Files task</strong> after Copy Files task. And settings as below:</p>
    <p style="clear: both"><img src="https://i.stack.imgur.com/SlA8b.png" /></p>
    <p>Change the <strong>Publish Artifacts task</strong> as below:</p>
    <h2>Azure vsts devops</h2>

    <h3>Azure vsts devops</h3>
    <p>[youtube]</p>
    Azure vsts devops <a href="http://remmont.com">Top news</a> Azure vsts devops
    <h4>Azure vsts devops</h4>
    Exclude/Skip files in VSTS Build and release We are in process of creating architecture for VSTS CI/CD to deploy our web app to our Azure App Services. We want to exclude the web.config while
    <h5>Azure vsts devops</h5>
    Azure vsts devops <a href="http://remmont.com">Azure vsts devops</a> Azure vsts devops
    SOURCE: <h6>Azure vsts devops</h6> <a href="https://dev-ops.engineer/">Azure vsts devops</a> Azure vsts devops
    #tags#[replace: -,-Azure vsts devops] Azure vsts devops#tags#

    Kabrinskiy Eduard
    news today

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