Jenkins is a tool that helps to achieve continuous integration, making it possible to continually repeat a task in a sustainable way. The installation and deployment of Jenkins is not described here, but can be consulted in the documentation: https://www.cnblogs.com/bendouyao/p/9119843.html
Jenkins Project deployment:
1. Start Jenkins:
In the Jenkins directory, start the console, enter the command Java-jar Jenkins.war. After you start, Access http://localhost:8080 in the browser to enter the main page
To set the Git.exe path:
The first time you build Jenkins, set the Git.exe path first. System settings----Global Tool configuration---gitinstalltions
2. New Task
Click New Task on the left----go to the New Task page, fill in the Task name, select style, click OK
Next go to the project-related configuration page:
General: Item Description Free fill
SOURCE Management:
Because I'm using git to manage the code. So what I'm choosing here is git. Then fill in the URL of the remote Git repository, and the account number. Branch selection requires an Operation branch. This defaults to the master
Build triggers:
Set when to execute. Here you can set up a timed run task, select Poll SCM, and then enter the execution time in the timeline
Time format: Refer to 76522222
Altogether five-bit: five stars * * * * * * respectively for the time of day of the Month of the week (there is a space in the middle)
For example: * * * * * * Five are All Stars, on behalf of every minute to execute
10 21 * * * represents 21:10 minutes of daily execution
*/10 * * * represents every 10 hours of execution
Build---"Add build steps:
This step allows you to write scripts that run first when you build them. If Jenkins is deployed on Windows, select Excute Windows Batch command. If you are deploying on a Linux system, choose Excute shell and add shell scripts
Click Save. Back to the main panel, the project you just created will be displayed. Can be built
To view the Run log:
Click on the project, go to the Project details page, you can just run the record on the left, select View console output. viewing console output Information
After the test is successful, the build status changes to a blue ball
Jenkins deploys Git+python projects for continuous integration