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

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:
主站蜘蛛池模板: 雷山县| 容城县| 时尚| 辽中县| 新津县| 水城县| 清丰县| 章丘市| 沙湾县| 承德市| 西充县| 环江| 泰安市| 雷波县| 武川县| 南木林县| 万盛区| 东光县| 肥城市| 青冈县| 彭山县| 昆明市| 镇原县| 台东市| 芜湖县| 铜陵市| 衢州市| 南漳县| 龙里县| 祥云县| 雷波县| 娄底市| 长葛市| 岱山县| 彭州市| 东阳市| 宁武县| 工布江达县| 萨嘎县| 临邑县| 马边|