brew install ngrok
ngrok config add-authtoken <your-ngrok-authtoken>
🔗 ngrok 홈페이지에서 발급한 토큰을 사용합니다.

Jenkins가 localhost:8081에서 실행 중이라면 다음 명령어로 외부 접근 주소를 생성합니다.
ngrok http http://localhost:8081
생성된 주소(https://cbdb88ccb0eb.ngrok-free.app)는 GitHub Webhook 설정에 사용됩니다.


GitHub 리포지토리 → Settings → Webhooks → Add webhook

Payload URL
https://xxxxx.ngrok-free.app/github-webhook/
Content type
application/json
Trigger events
Just the push event
🥳 ngrok 터미널에서 다음과 같은 로그 확인
POST /github-webhook/ 200 OK
