官术网_书友最值得收藏!

Adding a Jenkins webhook URL in a GitHub project

To add a Jenkins webhook URL, you need to perform the following steps:

  1. Grab your GitHub webhook URL from Manage Jenkins | Configure System | GitHub Web Hook Section.

Example URL: https://<your-domain-name or IP address>/web-hook/

  1. Go to GitHub | Choose your project. Go to Settings and select Integrations and Services. Click on Add service and search for Jenkins. As a result, you will see two service: Jenkins (Git plugin) and Jenkins (GitHub plugin). Choose one according to your project. We are going for Jenkins (GitHub plugin):
  1. Add your Jenkins webhook URL and click on Add service:
  1. Verify that the hook is working by clicking on Test service. It will send our test payload to the Jenkins server. If everything is working fine, then we will see a green check mark before the Jenkins webhook:

To test your continuous integration pipeline, add some changes in the README file we created. Push changes to GitHub.

  1. In Jenkins, you can see the "devops-ci-cd"  build is automatically started as shown in the following screenshot:
主站蜘蛛池模板: 龙州县| 开封市| 新疆| 通州区| 罗源县| 广灵县| 玉田县| 竹山县| 湄潭县| 义乌市| 玉环县| 都昌县| 容城县| 惠水县| 开化县| 孝感市| 什邡市| 平乐县| 榕江县| 东至县| 凤阳县| 七台河市| 遂溪县| 黑水县| 甘南县| 内江市| 镇安县| 佛学| 西吉县| 项城市| 依兰县| 深圳市| 聂荣县| 砀山县| 六盘水市| 张掖市| 高唐县| 横山县| 兴安盟| 永修县| 肥城市|