https://github.com/bchew/jenkins-github-branches-updater
Simple Python server to receive GitHub's payload via its post-receive hook and update branch list for repositories
https://github.com/bchew/jenkins-github-branches-updater
Last synced: about 1 month ago
JSON representation
Simple Python server to receive GitHub's payload via its post-receive hook and update branch list for repositories
- Host: GitHub
- URL: https://github.com/bchew/jenkins-github-branches-updater
- Owner: bchew
- Created: 2013-06-19T07:21:10.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-23T05:18:06.000Z (over 11 years ago)
- Last Synced: 2025-02-07T13:18:20.061Z (3 months ago)
- Language: Python
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jenkins-github-branches-updater
===============================This simple Python server receives GitHub's payload via the post-receive hook and subsequently updates the branch list for the repository specified in the payload. It coincides with the set up on the Jenkins side utilising the Extended Choice Parameter plugin to allow for the list of branches to be populated as a drop down in a Jenkins job (as documented here: https://www.sourceprojects.org/default/2012/12/22/1356192120000.html)
Steps to get it up and running:
1. Install `pip install PyGithub` (Python module used in this script)
2. Edit the configuration file with the path to save the branches to, your GitHub token, port to run on.
3. Start it with `python github-branches-updater.py`. Path to the config file can be specified as an argument.