Skip to content

devopsx/gha-jjb

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!