File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11## Jenkins Job Builder action
22
33This action launches [ Jenkins Job Builder] ( https://jenkins-job-builder.readthedocs.io/en/latest/ ) to update your Jenkins jobs.
4+
5+ ## Example
6+
7+ ``` yaml
8+ name : jjb
9+
10+ on : [push]
11+
12+ jobs :
13+ jjb :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v2
17+ - uses : devopsx/gha-jjb@master
18+ with :
19+ jenkins_token : ${{ secrets.JENKINS_TOKEN }}
20+ jjb_yml : jenkins/jobs.yml
21+ jjb_ini : jenkins/jenkins_jobs.ini
22+ ` ` `
23+
24+ ## Configuration
25+
26+ 1. Create Jenkins [API token](https://www.jenkins.io/blog/2018/07/02/new-api-token-system/).
27+ 2. Create ` JENKINS_TOKEN` [secret](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository) in repo settings.
28+ 3. Add gha yaml, as described above. That's it!
You can’t perform that action at this time.
0 commit comments