by Irina Muchnik
... but ... you are about to find out...
Jenkins As Code.
Any questions?
kidding....https://github.com/cfpb/jenkins-automation
```
import jenkins.automation.utils.SiteMonitorJobBuilder
new SiteMonitorJobBuilder(
name: "my-site-pulse-check",
description: "Sample url pulse check job",
cronSchedule: "@daily",
urls: ["http://google.com","http://yourethemannowdog.ytmnd.com/"]
).build(this);
```
```
import jenkins.automation.utils.JsJobBuilder
String basePath = 'JsJobSamples'
List developers = ['irina.muchnik@cfpb.gov', 'daniel.davis@cfpb.gov']
def repos = [
[name: 'jenkins-automation', url:"https://github.com/cfpb/jenkins-automation@2.0"],
[name: 'collab', url: "https://github.com/cfpb/jenkins-automation"]
]
folder(basePath)
{description 'This example shows how to create jobs using Job builders.'}
new JsJobBuilder(
name: "$basePath/MyProjectJavascriptJob",
description: 'An example using a job builder for a Javascript build jobs project.',
repos: repos,
emails:developers,
use_versions: true )git a
.build(this)
```
Auto generated
From groovydoc comments
Marc Esher has tried on Qu and he described the experience as
"Ejoyable! " "And Cool! " "And Fun! "