forked from sheehan/job-dsl-gradle-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example7Jobs.groovy
30 lines (25 loc) · 886 Bytes
/
example7Jobs.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import com.dslexample.GradleCiJobBuilder
import com.dslexample.GrailsCiJobBuilder
String basePath = 'example7'
List developers = ['dev1@example.com', 'dev2@example.com']
folder(basePath) {
description 'This example shows how to create jobs using Job builders.'
}
new GrailsCiJobBuilder(
name: "$basePath/grails-project1",
description: 'An example using a job builder for a Grails project.',
ownerAndProject: 'myorg/project1',
emails: developers,
).build(this)
new GrailsCiJobBuilder(
name: "$basePath/grails-project2",
description: 'Another example using a job builder for a Grails project.',
ownerAndProject: 'myorg/project2',
emails: developers,
).build(this)
new GradleCiJobBuilder(
name: "$basePath/gradle-project1",
description: 'Example job description',
ownerAndProject: 'myorg/project3',
tasks: 'clean test'
).build(this)