code到詹金斯在Ubuntu电脑.NET MVC解决方案发布 [英] Code publish through jenkins for .net MVC solution in Ubuntu machine

查看:291
本文介绍了code到詹金斯在Ubuntu电脑.NET MVC解决方案发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经建立了詹金斯CI构建环境在Ubuntu的。NET code基地。

We have setup a jenkins CI build environment in ubuntu for .net code base.

以下是詹金斯进行,发现步骤进行精细的工作: - 从混帐获取code的基础库。 - 建立使用'XBuild'的code基地。建立是可能的发行方式为好。

Following are the steps performed in jenkins and found to be working fine: - Get code base repository from git. - Build the code base using 'XBuild'. Build is possible with Release mode as well.

邮政建设,我们面临的问题是与发布构建code。我们可以按照上述步骤,建立与MSBuild的和发布在Windows中。但在Ubuntu中,我们无法发布(本地或外部)作为命令行参数(在shell窗口)发布/p:proj_file_pub.xml'不与Ubuntu的XBuild建设工作。

Post build, the issue we are facing is with publishing the build code. We are able to follow above listed steps, build with MSBuild and publish in Windows. But in Ubuntu, we are unable to publish (locally or externally) as the command line parameters (in shell window) to publish '/p:proj_file_pub.xml' does not work with Ubuntu XBuild build.

我们也有一个手动构建在.NET codeBase的安装在Ubuntu单的工具。在情况下,我们可以做发布使用单与任何shell命令,那么请让我们知道一样。

We also have mono tool installed in Ubuntu for manually building the .net codebase. In case we can do publish using mono with any shell command, then please do let us know the same.

我要再次重申的要求,构建.NET codeBase的在詹金斯并发布到本地或外部服务器。首先,我们正在寻找本地发布的code。

I would re-iterate the requirement, to build the .net codebase in Jenkins and publish to local or external server. Firstly, we are looking to publish the code locally.

请提出相应的shell命令发布了code在Ubuntu机使用詹金斯基地。

Please suggest appropriate shell command to publish the code base in Ubuntu machine using Jenkins.

PS:在code基是一个MVC Web应用程序

PS: The code base is an MVC web application.

推荐答案

成功!

在大量的调查研究发现,命令在本地发布一个网站使用xbuild在Ubuntu与下面的命令......

After lot of research found that the command to publish a website locally using xbuild in ubuntu is with following command...

xbuild ./sandbox/sandbox.csproj /吨:构建/号码:OutputPath =/无功/ code /构建/ P:配置=发布

xbuild ./sandbox/sandbox.csproj /t:Build /p:OutputPath="/var/code/build" /p:Configuration="Release"

重要参数,同时注意上面的命令发布的是/ P:OutputPath。我们需要设置合适的路径OutputPath为它相应的发布。

Important parameter to note while publishing in above command is /p:OutputPath. We need to set appropriate path for "OutputPath" for it to publish accordingly.

发布的网站,这是该路径下,例如/ var / code /建设/网站/ Publish_Website文件夹(不知道实际的路径)。

The published website would be under the path such as /var/code/build/website/Publish_Website folder (not sure of the actual path).

同一个命令可以与詹金斯作为一个shell命令发布网站后CI构建。

Same command could be used with Jenkins as a shell command to publish website post CI build.

希望这信息帮助。

这篇关于code到詹金斯在Ubuntu电脑.NET MVC解决方案发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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