Jenkins Learning Note Series 3--trigger plugin configuration

Source: Internet
Author: User

First, Jenkins built-in trigger plug-in

1) build after other projects is built

You can set up multiple dependent jobs and start this build when any of the dependent jobs succeeds. Multiple dependent jobs are used, separated.

2) Trigger builds remotely (e.g., from scripts)

Specify Token_name in authentication token, and you can then start the build by connecting Jenkins_url/job/jobname/build?token=token_name.

3) Build periodically

Set in schedule, syntax is similar to cron syntax.

Cycle for project Construction (it does not care source changes), my configuration is as follows:

0 2 * * * (the source code must be build once a day 2:00)

4) Poll SCM

Set the time interval in schedule to crawl the SCM server and, if there is a new modification, start the build. So the role here is equivalent to continous build

Check the source code changes regularly (according to the SCM software version number), if there is an update checkout the latest code down, and then perform the build action. My configuration is as follows:

*/5 * * * * (check the source changes every 5 minutes)

Second, the other trigger plug-in

You need to install the plugin manually.

Installation method: Plug-in management----Advanced---Upload the downloaded plug-in (the default upload is installed)

Maven-dependency-update-trigger: Start build when there is a new Maven dependency detected, similar to the continuous build.

Buildresult-trigger: Start this build based on the success or failure of another job.

Files-found-trigger: detects the specified directory and starts build if a file of the specified schema is found.


Jenkins Learning Note Series 3--trigger plugin configuration

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.