开发者

Hudson NSIS plugin

I have an asp.net solution. I have installed Ms build plugin to build it. The job is successfully building. Now i want to achieve two things using hudson. 1. Once the build completes, I want to publish the solution. 2. How can I attach existing NSIS script for the creation of windows installer. Is there any specific plugin fo开发者_开发技巧r NSIS in hudson? Kindly help me.


There is a plugin:

https://github.com/Elbandi/nsis-plugin

Now trying to use / enable / configure it on my company CI server ...


In your MSBuild file you could have a target that calls Exec to invoke MAKENSIS.EXE


I myself found the solution for this problem.

  1. After the Build stage add Execute windows batch command section. Here we can add the asp.net web application pulishing command. For instance call:

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe" -v /ABC1 -p "F:\TEST" -f -fixednames "%hudson_home%\source" -c
    

    Here F:\TEST is the target location and %hudson_home%\source is the source location.

  2. After this we can call our NSIS script using makensis.exe, e.g.:

    makenis.exe tst.nsi
    

Done..!!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜