Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/offa/jenkins-push-url-generator
Generates Git Push Notification URLs for Jenkins.
https://github.com/offa/jenkins-push-url-generator
git jenkins jenkins-scm jenkins-webhook notification-urls push-notifications
Last synced: about 2 months ago
JSON representation
Generates Git Push Notification URLs for Jenkins.
- Host: GitHub
- URL: https://github.com/offa/jenkins-push-url-generator
- Owner: offa
- License: gpl-3.0
- Created: 2019-01-31T20:05:36.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T18:33:24.000Z (9 months ago)
- Last Synced: 2024-04-12T00:00:54.311Z (9 months ago)
- Topics: git, jenkins, jenkins-scm, jenkins-webhook, notification-urls, push-notifications
- Language: Python
- Homepage:
- Size: 82 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jenkins Push URL Generator
[![CI](https://github.com/offa/jenkins-push-url-generator/workflows/ci/badge.svg)](https://github.com/offa/jenkins-push-url-generator/actions)
[![GitHub release](https://img.shields.io/github/release/offa/jenkins-push-url-generator.svg)](https://github.com/offa/jenkins-push-url-generator/releases)
[![License](https://img.shields.io/badge/license-GPLv3-yellow.svg)](LICENSE)
![Python 3.9](https://img.shields.io/badge/python-3.9-green.svg)Generates [Push Notification URLs](https://plugins.jenkins.io/git/#plugin-content-push-notification-from-repository) to be used by Git repositories to trigger [Jenkins](https://jenkins.io/) builds.
#### Usage
```sh
# URL for host passed by parameter
python generate_url.py -j https://ci.example.org:9090 -t 9f287293553540997f919afe1c02cce9111e80d5 [email protected]:ex/git-repo.git# URL for 'prod' host predefined in 'jenkins.conf'
python generate_url.py -e prod -t bd44e92b89971150123a9d837d1481095611c32c [email protected]:ex/git-repo.git# URL for all hosts predefined in 'jenkins.conf'
python generate_url.py -a -t 25e575a3fbb2f32f083e8768b757fb5fc082bfe5 [email protected]:ex/git-repo.git
```Use `python generate-url.py --help` for more information.
##### Predefined environments
The `--environment` / `-e` options load the host and port by name from the `jenkins.conf` file.
Each entry consists of a *name* and the *host* (with a optional port). `https://` is added if neither `https://` nor `http://` is present. Use `-a` / `--all` to generate URLs for all entries.```ini
[instances]
prod = jenkins-prod-1
test = jenkins-test:8082
```