https://github.com/commonjava/jenkins-jobs
Jenkins management stuff - project definitions and scripts to help maintain jobs
https://github.com/commonjava/jenkins-jobs
Last synced: about 1 year ago
JSON representation
Jenkins management stuff - project definitions and scripts to help maintain jobs
- Host: GitHub
- URL: https://github.com/commonjava/jenkins-jobs
- Owner: Commonjava
- Created: 2016-06-16T02:34:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-15T22:00:32.000Z (over 8 years ago)
- Last Synced: 2025-02-01T18:36:29.827Z (over 1 year ago)
- Language: Python
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jenkins Jobs
This repository contains scripts and YAML definitions to allow easy maintenance of Jenkins jobs for one or more GitHub organizations. In principle, you could also hand-author the YAML and use any Git repositories.
## Scanning An Organization
```
$ ./scan-org-repos.py Commonjava
```
This will retrieve all the public repositories for the Commonjava organization. From these definitions, it will pull the 'name' and 'html_url' fields and use them to create a basic YAML file for each project.
## Creating / Updating Jenkins Jobs
Once you have your YAML definitions in place, you can push the new / updated job definitions using:
```
$ ./create-projects.py http://my.jenkins.host
```
## Secrets
Your username, Jenkins API Token, and the GitHub API token registered for use with your Jenkins instance should be stored in `$HOME/.jenkins-secrets.yaml` with the following format:
```
secret-gitHubAuthId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
username: myuser
token: 'xxxxxxxxxxxxxxxxxxxx'
```