Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devopsx/gha-jjb
Jenkins Job Builder github action
https://github.com/devopsx/gha-jjb
jenkins jenkis-job-builder
Last synced: 2 months ago
JSON representation
Jenkins Job Builder github action
- Host: GitHub
- URL: https://github.com/devopsx/gha-jjb
- Owner: devopsx
- Created: 2021-07-18T01:26:06.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-26T06:50:26.000Z (over 1 year ago)
- Last Synced: 2024-10-19T07:05:14.232Z (4 months ago)
- Topics: jenkins, jenkis-job-builder
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Jenkins Job Builder action
This action launches [Jenkins Job Builder](https://jenkins-job-builder.readthedocs.io/en/latest/) to update your Jenkins jobs.
## Example
```yaml
name: jjbon:
push:
paths:
- jenkins/jobs/** # job definitions here, searched recursivelyjobs:
jjb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: devopsx/gha-jjb@master
with:
jenkins_token: ${{ secrets.JENKINS_TOKEN }}
jjb_dir: jenkins/jobs # same dir with definitions as in push stanza
jjb_ini: jenkins/jenkins_jobs.ini
```## Configuration
1. Create Jenkins [API token](https://www.jenkins.io/blog/2018/07/02/new-api-token-system/).
2. Use it to create `JENKINS_TOKEN` [secret](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository) in repo settings.
3. Add workflow yaml, as described above.That's it!