jenkins-hook-proxy
Logic
jenkins-hook-proxy is a server, which handler does the next steps:
- receive github webhook push event
- parses retrieved data using github webhook secret
- composes request to trigger Jenkins generic webhook endpoint by setting a special
token
as a URL value, that is equal to the repository name. - log results to Stdout and slack channel(if configured)
Role in cluster
jenkins-hook-proxy should be:
- located inside the cluster
- exposed to github, but protected with github webhook secret
- able to reach jenkins to trigger the jobs
Requirements
JENKINS_ENDPOINT
GITHUB_SECRET
SLACK_TOKEN
(optional)SLACK_CHANNEL
(optional)
Usage
See examples directory