Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 936 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 936 Bytes

Jenkins Job Builder action

This action launches Jenkins Job Builder to update your Jenkins jobs.

Example

name: jjb

on:
  push:
    paths:
      - jenkins/jobs/** # job definitions here, searched recursively

jobs:
  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.
  2. Use it to create JENKINS_TOKEN secret in repo settings.
  3. Add workflow yaml, as described above.

That's it!