In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to use Ngrok to configure Github triggers and Git polling, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
How to configure Github triggers on a job and how to use Webhook to communicate with Github
Overview
Jenkins is a leading open source automation service. It provides 1500 + plug-ins to support building, deploying and automating any project. In this article, we will examine how to configure Github triggers on a job and how to communicate with Github using Webhook, which indicates when to poll the job to build changes to the project.
prerequisite
You need to have a project in Github.
You will need to start and run the Jenkins service.
Install and run Ngrok
Ngrok is a reverse proxy that accepts traffic at a public address and relays that traffic to a ngrok process running on your computer and then to a local address that you specify.
So go to Ngrok and sign up for an account either way you choose. Then you should see the screenshot below, which shows how to extract and run it.
Run. / ngrok http 8080, which will point to our Jenkins service.
After running the command, you will receive the agent hostname, as follows:
Forward http://xxxxx.ngrok.io->http://localhost:8080
Forward https://xxxxx.ngrok.io->http://localhost:8080
Set up Github Webhook
So, jump to the Github project and click Settings, and you should see webhooks on the left panel, and now click the button.
Add our webhook:
Set up a Jenkins project or pipeline job
Select Github hook trigger for GitScm polling:
Then, set up Jenkins Pipeline with your GitHub account:
Start preparing to test our work! Use branches such as develop,master that you specify to submit the submission to your project.
After the push is complete, you should start to see that your work has established the latest push, and you can jump to Github Hook Log and check to see if Webhook is proxied through Ngrok.
After reading the above, have you learned how to configure Github triggers and Git polling using Ngrok? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.