1. Install JDK version 1.8 by downloading it from the official Oracle website (https://www.oracle.com/java/technologies/downloads/)
2. Download the Jenkins installation package from https://jenkins.io/download/
3. Follow the installation process which is well-documented across various online resources
4. After installation, log in to the Jenkins interface and navigate to the plugin installation page. Install additional plugins including SSH Plugin (for script execution on remote servers), Subversion Plug-in (for SVN code management), MSBuild Plugin (for Visual Studio code compilation), and Publish Over FTP (for FTP functionality)
5. Navigate to Configuration → Global Credentials → Add Credentials to input all necessary username and password information (including system login credentials, SVN account, FTP account, etc.)
6. Go to System Management → System Settings, locate SSH remote hosts, click Add, and enter the information for your Windows deployment server. Save the configuration.
7. Navigate to System Management → System Settings, find Publish over FTP, click Add, and input your Windows server FTP information. Save the configuration.
8. Go to System Management → Global Tool Configuration, find MSBuild, click Add MSBuild, and specify the appropriate code compilation tools. Ensure the required .NET compilation environment is installed on the Jenkins server by installing the corresponding Visual Studio version.
9. Click New Item, enter a project name, select Freestyle project, and click OK.
10. Under Source Code Management, select Subversion.
11. Under Build → Add build step, select Execute Windows batch command.
c:\buildtools\packagegetter.exe restore
Note: packagegetter.exe needs to be downloaded from the internet and placed in a directory on the Jenkins server. This is the absolute path to the executable, and this code retrieves the nuget packages required for project compilation.
12. Under Build → Add build step, select Build a Visual Studio project or solution using MSBuild.
/t:Rebuild /p:Configuration=Release /p:VisualStudioVersion=16.11.5 /p:OutputPath=deployment\
Note: MSBuild Build File should point to your solution file. Command Line Arguments contains the compilation instructions.
13. Under Build → Add build step, select Send files over FTP.
14. Under Build → Add build step, select Execute shell script on remote host using ssh.
15. Click Save to complete the configuration.