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

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:
主站蜘蛛池模板: 赤水市| 基隆市| 崇仁县| 金溪县| 贞丰县| 阳原县| 邛崃市| 沁水县| 磐安县| 邵阳市| 察雅县| 巴林右旗| 葫芦岛市| 汨罗市| 松滋市| 卫辉市| 桓仁| 大理市| 蒙山县| 巧家县| 垦利县| 屏南县| 黑龙江省| 兰坪| 纳雍县| 崇仁县| 始兴县| 洪雅县| 和顺县| 平阴县| 潜江市| 新泰市| 工布江达县| 庄浪县| 靖宇县| 平江县| 克东县| 涿州市| 保定市| 呼玛县| 浏阳市|