Setting up Continuous integration and continuous deployment for Microsoft Applications

▼魔方 西西 提交于 2019-12-11 16:17:51

问题


In my organization we have more than 200 Microsoft desktop and web applications. I am trying to setup the continuous integration and Continuous deployment for those application(I already did for Java applications). We already have the following tools at place Enterprises Github, Jenkins, Nexus, XL-Deploy and XL-Release. We have also developed a framework in groovy that is invoked by Jenkins and dose all the automatic job creations in Jenkins and push generated artifact into nexus.

I want to setup the homogeneous solution and want to use the same tools set for the Microsoft.

I go through the Nexus documentation and didn't find any way to store the generated artifact(.exe or MSI) It only support the Nuget packages and I am not sure what are they and how to use them?

I am able to build my project solution file using msbuild.exe in Jenkins execute shell and able to generate the artifact in the form of .exe and MSI.

Now I have few questions:

-- How and where should I versioned and store the generated artifact(.exe and MSI) and how can I deploy my desktop applications on the targeted host(as we all know we need to double click on the .exe to install that).

-- How should I proceed with the web .net applications?

-- What is nuget package and can I use them for desktop applications deployment instead of MSI and do I need do modify any thing in my code for doing that ?

PS: I know TFS is the solution but we can not use that in our organization because of cost constraint.


回答1:


To upload the non-maven project artifacts such as zip, msi etc you can use Nexus Artifact Uploader. For this to work it is mandate to create maven type hosted repository and after that, upload the artifacts to this by populating GAV parameters and can be retrieve the artifacts based on the GAV parameters.

To deploy the artifacts to the test environments use WinRM Client Plugin to connect test environments.




回答2:


I find the solution for this:

What I am doing is, I compiling the the solution file using msbuild command line and this will generate the .exes for me. Once the exe's are generated I am packaging them into MSI using the WIX utility. once the MSI is generated I am versioning them using the linux mv command and a for loop the I am pushing them into Nexus repo using maven command passing the GAV parameters.



来源:https://stackoverflow.com/questions/44255898/setting-up-continuous-integration-and-continuous-deployment-for-microsoft-applic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!