WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Jenkins Job Builder

Actions
Update Jenkins Jobs
v2
Latest
Star (1)

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@v4
      - uses: devopsx/action-jjb@master
        with:
          jjb_user: ${{ vars.JJB_USER }}
          jjb_password: ${{ secrets.JJB_PASSWORD }}
          jjb_dir: jenkins/jobs                      # Same dir with definitions as in push stanza
          jjb_ini: jenkins/jenkins_jobs.ini          # See example

Configuration

  1. Create a dedicated github account in Jenkins, and an API token for it.
  2. Create JJB_USER variable (account from step 1) and JJB_PASSWORD (token from step 1) secret in repository settings.
  3. Add workflow yaml, as described above.

That's it!

Jenkins Job Builder is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Update Jenkins Jobs
v2
Latest

Jenkins Job Builder is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.