This article enters the actual combat, walks up ....
Sign in to Jenkins, as
Click on the "New" button to enter
Enter the project name, select "Build a free-style software project", click "OK", jump to
SVN source Control (select Subversion in Code manager)
Building trigger information maintenance (when to down source code to local)
The first meaning is to trigger the build remotely, that is, to access the URL in a way that triggers the build
The second meaning is that when another project is completed, it is built
The third meaning is to build it regularly (regardless of whether the source code has a new commit)
The fourth one skipped.
Fifth regular build (with a new commit to trigger the build)
The third and fifth can be the mother of their own expression of the writing.
Build
You first need to configure MSBuild in the system management--"Global Tool Configuration
Click the "MSBuild Install" button to eject
After maintenance, save (the new project will be able to select MSBuild directly)
Go back to the build process for the new project ....
Select MSBuild version (MSBuild vesion)
MSBuild Build File (Web project Direct input solution name, for example)
Command Line Arguments (the first row in the build parameter is to rebuild the solution; The second line is to build the release version; the third line is to build the 4.0 version of Framwork)
At this point, the project code of the Automatic acquisition, compilation has been configured to complete, the next is the deployment of the problem, study the FTP plugin does not solve the problem, I am currently using the Hudson Post build task
Because this plugin can call bat, more flexible copy of the file (both local and FTP server copy)
I added two post build tasks to copy the local copy and FTP server, respectively.
Log text (regular match, used to match the build result, there is a bug, please see for yourself, just blame it is too garbage)
Script (called Bat)
Run script only if all previous steps were successful (note that the following call command is called when this is a regular match)
(Ftp.bat is used to invoke the FTP command, the Local has been a problem, intends to write a console program specifically to handle FTP file upload, there is a better way, welcome to shoot Bricks)
At this point, auto get source code, build, deploy configuration is done
Behind the mailbox notice, you can own degree Niang.
(continuous integration) win7 on deployment of Jenkins+msbuild+svn+sonarqube+sonarqube Scanner for MSBuild (second hair)