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

Nashville : azure devops for beginners - Eduard Kabrinskiy

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

  1. NashvilleEn

    NashvilleEn Member

    Кабринский Эдуард - Azure devops unity - Рдуард Кабринский


    <h1>Azure devops unity</h1>
    <p>[youtube]</p>
    Azure devops unity <a href="http://remmont.com">Newspaper headlines</a> Azure devops unity
    <h1>CI Pipeline for Unity3D projects in Azure DevOps</h1>
    <p>by Jon Jander | 29 March, 2019 | Azure, Featured posts</p>
    <h1>Prerequisite</h1>
    <p>A quick guide how to set up Azure and Azure DevOps (VSTS) to automate the build process of your game made in Unity3D. this guide assumes that you have the following:</p>
    <p><ul>
    <li>Azure Subscription</li>
    <li>Azure DevOps Organization</li>
    <li>A Unity3D game project</li>
    <li>GIT knowledge</li>
    <li>Basic Azure and Azure DevOps (VSTS) knowledge</li>
    </ul>
    </p>
    <h1>Setup build agent in Azure</h1>
    <ol>
    <li>Login to your subscription in the Azure Portal (https://portal.azure.com).</li>
    <li>Deploy a new virtual machine and select a VisualStudio image (I use VS 2017 latest on windows 10 N), but remembert that W10 only is available on MSDN subscriptions. <br /><img src="https://www.altitude365.com/wp-content/uploads/2019/03/image.png" /></li>
    <li>Configure the VM to be accessible via RDP (but remember to remove this endpoint when you are done.</li>
    <li>Wait for the VM to deploy and start.</li>
    <li>Connect to the VM using RDP</li>
    <li>On the VM install Unity3D, start it and login. This is required at least if you are using the free license.</li>
    <li>Login to Azure DevOps (former VSTS) and configure a new build agent. (Self hosted agent)</li>
    <li>Configure the agent <br /><img src="https://www.altitude365.com/wp-content/uploads/2019/03/configureagent.png" /></li>
    <li>Wait for the agent to become active in the Azure DevOps portal <br /><img src="https://www.altitude365.com/wp-content/uploads/2019/03/agentactive.png" /></li>
    </ol>
    <h1>Prepare your Unity project</h1>
    <ol>
    <li>Open the project</li>
    <li>Create a new folder under <strong>assets</strong> named <strong>editor</strong></li>
    <li>Create a new script (C#) <br />using System.Collections; <br />using System.Collections.Generic; <br />using UnityEditor; <br />using UnityEngine;public class GameBuilder <br /><<br />static void build() <br /><<br />// Place all your scenes here <br />string[] scenes = <?Assets/scenes/SampleScene.unity?>; <br />string pathToDeploy = ?bin/windwos64/exeName.exe?; <br />BuildPipeline.BuildPlayer(scenes, pathToDeploy, BuildTarget.StandaloneWindows64, BuildOptions.None); <br />><br />></li>
    <li>Change the <strong>scenes</strong> to include your scenes and change the <strong>pathToDeploy</strong> to a suitable name.</li>
    </ol>
    <h1>Configure Azure DevOps</h1>
    <ol>
    <li>Create a new project</li>
    <li>Use git to push your game code to the newly created project.</li>
    <li>Create a new blank build definition.</li>
    <li>Add a powershell step and use this inline script <br />$project = ?\? <br />$arguments = @( <br />?-quit?, <br />?-batchmode?, <br />?-logFile stdout.log?, <br />?-projectPath $project?, <br />?-executeMethod GameBuilder.build? <br />?-username $(unityusername)?, <br />?-password $(unitypassword)? <br />) <br />$processinfo = Start-Process -FilePath ?C:\Program Files\Unity\Editor\Unity.exe? -ArgumentList $arguments -PassThru <br />Wait-Process -Id $processinfo.Id</li>
    <li>Add two new pipeline variables <ul>
    <li>unityusername ? your username to unity</li>
    <li>unitypassword ? your password to unity (remeber to check the lock icon to make your password variable a secret) <br /><img src="https://www.altitude365.com/wp-content/uploads/2019/03/varaiablesvsts.png" /></li>
    </ul>
    </li>
    <li>Finnaly add a <strong>publish artifact</strong> step and change the <strong>Path to publish</strong> to <strong>bin</strong><em>(pathToDeploy in your GameBuilder class)</em></li>
    <li>Save and queue</li>
    </ol>
    <p style="clear: both">The artifacts of this build will be the the win64 version of the Unity player. You can browse and download the artifacts from the portal, to verify the build. <br /><img style="float: left; margin: 0 10px 5px 0;" src="https://www.altitude365.com/wp-content/uploads/2019/03/artifacts.png" /></p>
    <p>The next step is to release the build, but that?s another story ??</p>
    <h2>Azure devops unity</h2>

    <h3>Azure devops unity</h3>
    <p>[youtube]</p>
    Azure devops unity <a href="http://remmont.com">America news today</a> Azure devops unity
    <h4>Azure devops unity</h4>
    CI Pipeline for Unity3D projects in Azure DevOps by Jon Jander | 29 March, 2019 | Azure, Featured posts Prerequisite A quick guide how to set up Azure and Azure DevOps (VSTS) to automate
    <h5>Azure devops unity</h5>
    Azure devops unity <a href="http://remmont.com">Azure devops unity</a> Azure devops unity
    SOURCE: <h6>Azure devops unity</h6> <a href="https://dev-ops.engineer/">Azure devops unity</a> Azure devops unity
    #tags#[replace: -,-Azure devops unity] Azure devops unity#tags#

    Эдуард Кабринский
    online news

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