Overview
Jenkins is an open source continuous integration tool written in Java. Its predecessor was Hudson. It can use it to automatically compile, test and release projects, which greatly reduces the tedious and duplicate work between teams and speeds up the delivery progress of the entire project.
Download the official website Jenkins&SVN&eclipse, the version number is not required, it is recommended to use the latest stable version
4. Open eclipse and open the created Java project
5. Install the svn-eclipse plug-in:
Open the eclipse installation directory link folder, copy and unzip the SVN plug-in compression package to the link folder. Then create an svn.link file, the file content is the svn plug-in installation path such as: path=D://360Downloads//Software//eclipse-SDK-win32//link//SVN
After the installation is successful, the svn resource library will be displayed under eclipse.
6. After the svn plug-in is installed successfully, enter the project project, right-click -> team-> share project-> enter the version library URL--> specify the project module trunk folder. Then go back to the Java project, click on the project Jdemo, right-click --》 to submit, and submit code to svn
8. Create job under Jenkins
Enter the Jenkins homepage and click New as shown in the picture
9. Copy curl.exe&libssh2.dll to the root directory of C:/Windows/System32
10. Create a hook file. Enter the hooks folder of the svn installation directory, create the post-commit.bat file, create the post request, the request content is curl -X post -v -u user:pwd URL (project construction URL)
Note: -u user:pwd is Jenkins login account and password
11. After creating a hook and a job, the code will be automatically built once it is submitted.
The above is all the content of this article. I hope it will be helpful to everyone's learning and I hope everyone will support Wulin.com more.