I can come up with one approach that you can use.
Using the DSL Job Plugin allows you to create or delete projects using Groovy. Itβs easy to enable github scanning and create jobs from this. The good thing is that it also recognizes remote jobs.
those. Install the Job DSL plugin, create the initial job (in the free style) using a regular trigger, and paste something similar below into your script ..
def project = 'nbn/griffon-maven-plugin' def branchApi = new URL("https://api.github.com/repos/${project}/branches") def branches = new groovy.json.JsonSlurper().parse(branchApi.newReader()) branches.each { def branchName = it.name job { name "${project}-${branchName}".replaceAll('/','-') scm { git("git://github.com/${project}.git", branchName) } steps { maven("test -Dproject.name=${project}/${branchName} ") } } }
source share