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

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:
主站蜘蛛池模板: 馆陶县| 沐川县| 广南县| 芮城县| 封开县| 屯留县| 新蔡县| 嘉善县| 搜索| 长春市| 五台县| 盘锦市| 青浦区| 汝城县| 甘肃省| 玛曲县| 兴海县| 岳阳县| 霍山县| 黎城县| 吉林省| 威宁| 乃东县| 庆安县| 湘乡市| 盐池县| 贺州市| 全南县| 镇江市| 穆棱市| 盖州市| 新宾| 特克斯县| 韩城市| 浦县| 嘉鱼县| 阿瓦提县| 青阳县| 建瓯市| 大连市| 华阴市|