Jenkins deploys Git+python projects for continuous integration

Source: Internet
Author: User
Tags using git

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.