Use jenkins to automatically package c# projects

need:

1. C# code, R&D will update the compiled code to svn.

2. It is necessary to automatically obtain the updated compiled file and automatically package it into an EXE file through the advanced installer.

3. Copy the packaged EXE file to svn.

Ideas:

1. Download and install "Advanced Installer 14.4.1" on the jenkins server

2. Manually run "Advanced Installer 14.4.1" once to generate "×××.aip" file.

3. Download the " Advanced Installer Msi Builder Plugin " plug- in on jenkins , this plug-in is the main force!

4. Create a new project on jenkins, and automatically synchronize to obtain the latest compiled files on svn.

5. Configure the project, set the svn account and aip file location and other information

6. Steps to set up the machine for remote copying:

step:

1. Install "Advanced Installer 14.4.1". Cracked version installation package download address: https://download.csdn.net/download/xiaodaiwang/11459969

2. Run "Advanced Installer 14.4.1" manually to generate the required "×××.aip" file for future automatic execution.

3. Configure the automatic execution project on jenkins

save the project in: the address where the generated aip file is stored: C:\Users\xtyfuser\Documents\Advanced Installer\Projects\×××.aip

project output folder: the output location of the EXE file

Choose a folder location for your code

Open the generated EXE and aip file location, you can see the generated EXE file and aip file.

Configure automatic execution project on jenkins

1. Download the plugin first:

2. Configure the plug-in in the system

3. Create a project

 

 

 

 

 

Guess you like

Origin blog.csdn.net/xiaodaiwang/article/details/98036139