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

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:
主站蜘蛛池模板: 察雅县| 永和县| 康乐县| 海盐县| 公安县| 黄冈市| 灌阳县| 商洛市| 容城县| 淮南市| 阳泉市| 平凉市| 兴海县| 巴东县| 贺州市| 延吉市| 杭锦后旗| 页游| 皮山县| 洪雅县| 青冈县| 石河子市| 巴里| 张家港市| 临海市| 大渡口区| 普安县| 青海省| 永丰县| 江西省| 田林县| 巴塘县| 台安县| 大厂| 庆安县| 花莲市| 庆云县| 舒兰市| 镇坪县| 华池县| 赣榆县|