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

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:
主站蜘蛛池模板: 茂名市| 西乌珠穆沁旗| 丰台区| 广元市| 静乐县| 垫江县| 华容县| 商都县| 东方市| 寿宁县| 孟津县| 秦安县| 五大连池市| 遂宁市| 巴青县| 赣州市| 潍坊市| 云霄县| 栾川县| 古田县| 新闻| 商洛市| 乌鲁木齐市| 浦东新区| 余江县| 唐山市| 南投市| 岳阳县| 二连浩特市| 新田县| 永康市| 乡城县| 尼木县| 柳江县| 安达市| 乌兰县| 三都| 渭南市| 左权县| 项城市| 五台县|