使用jenkins和azure自动化Unity的构建过程 [英] Automate the building process of Unity with jenkins and azure

查看:73
本文介绍了使用jenkins和azure自动化Unity的构建过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


您好几天我现在尝试使用jenkins和azure自动化Unity的构建过程但我尚未完成它而且我需要一些帮助。我已经在azure上设置了Jenkins服务器,并且已经连接了github帐户。因此,当我将提交推送到
我的存储库时,jenkins会尝试构建它。此外,我已经在azure上设置了一个统一的Windows VM,我测试了VM可以构建统一项目。现在我有两个选择:

Hi I am trying for some days now to Automate the building process of Unity with jenkins and azure but I have not finish it yet and I need some help. I have set up a Jenkins server on azure and I have connected the github account. So when I push a commit to my repository the jenkins tries to build it. Also I have set up a Windows VM on azure with unity on it and I have tested that the VM can build unity projects. Now I have two choices I believe:


我可以用某种方式连接jenkins和已经拥有的VM并告诉它构建我的项目或者我可以告诉jenkins获取VM的这个图像以及每次我想要构建来创建VM的实例。

I can connect somehow the jenkins with the VM that allready have and tell it to build my projects OR I can say to jenkins to take this image of the VM and every time that I want to build to create a instance of the VM.


我在这里是否正确?

Am I correct here?


另外,要构建一个Unity项目,您需要运行一个脚本。什么是"程序"?处理这个问题的部分?

Also to build a unity project you need to run a script. What is the "program" or sections for dealing with this?


实施这些策略应该寻找什么?

What should look for implementing this strategies?


任何帮助都将受到赞赏。

Any help would be appreciated.


谢谢

推荐答案

您好,

您可以根据每天的构建数量和每次构建所花费的时间来决定这两个选项。

You can decide between those two options based on the number of builds per day and the time taken for each build.

如果您每天的构建数较少,那么您可以配置jenkins来创建机器前夕因为这是构建的奴隶。

If you have less builds per day, then you can configure jenkins to create a machine every time as that is a slave for building.

如果你每天有更多的构建,那么你可以创建一台机器并将其作为永久奴隶添加并保持它一直运行。

If you have more builds per day, Then you can create a machine and add it as a permanent slave and keep it running all the time.

每次使用jenkins创建新的从属服务器时,您可以使用现有的Windows映像和自定义脚本扩展来安装所需的软件。因此,您不需要维护操作系统更新。

When you are using jenkins to create a new slave every time, You can use the existing windows image and a custom script extension to install the required softwares. So that you dont need to maintain the os updates.

Jenkins已经 批量块,通过它你可以执行命令来构建统一项目。

Jenkins has  a batch block , Through that you can execute commands to build the unity project.


这篇关于使用jenkins和azure自动化Unity的构建过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆