createJenkinsJob

fun createJenkinsJob(username: String, jobName: String, repoLink: String, isFreestyle: Boolean, config: (String) -> String = { it }): Boolean

Creates a Jenkins job.

Parameters

username

The username of the user to create the job at.

jobName

The name of the job.

repoLink

The Git URL to the repository.

isFreestyle

true if the job is a freestyle job, false otherwise. A freestyle job is defined as a job that isn't built with Maven.

config

A function to modify the XML configuration of the job.