This repository has been archived by the owner on May 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
views.groovy
103 lines (98 loc) · 2.48 KB
/
views.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import groovy.json.JsonSlurper
def projectCatalog = new File("/var/git/stable/jenkins-jobs-setup/projects.json")
def slurper = new JsonSlurper()
def jsonText = projectCatalog.getText()
def json = slurper.parseText(jsonText)
listView("Deployments") {
description("All deploying jobs of modules that use the maven-build-process")
jobs {
json.each {
name("${it.name}/${it.name}_deploy_to_local-nexus")
}
}
recurse(true)
columns {
status()
weather()
name()
lastSuccess()
lastFailure()
lastDuration()
buildButton()
}
}
listView("Latest Parent") {
description("All deploying jobs of modules that use the maven-build-process")
jobs {
json.each {
name("${it.name}/${it.name}_with_latest_snapshot_parent")
name("${it.name}/${it.name}_with_latest_stable_parent")
}
}
recurse(true)
columns {
status()
weather()
name()
lastSuccess()
lastFailure()
lastDuration()
buildButton()
}
}
listView("Failure") {
description('All failing jobs')
jobs {
json.each {
name("${it.name}/${it.name}_deploy_to_local-nexus")
if (!"maven-build-process".equals(it.name)) {
name("${it.name}/${it.name}_with_latest_snapshot_parent")
name("${it.name}/${it.name}_with_latest_stable_parent")
}
}
}
jobFilters {
status {
status(Status.UNSTABLE, Status.FAILED, Status.ABORTED)
matchType(MatchType.EXCLUDE_UNMATCHED)
}
}
recurse(true)
columns {
status()
weather()
name()
lastSuccess()
lastFailure()
lastDuration()
buildButton()
}
}
listView("Success") {
description('All successful jobs')
jobs {
json.each {
name("${it.name}/${it.name}_deploy_to_local-nexus")
if (!"maven-build-process".equals(it.name)) {
name("${it.name}/${it.name}_with_latest_snapshot_parent")
name("${it.name}/${it.name}_with_latest_stable_parent")
}
}
}
jobFilters {
status {
status(Status.STABLE)
matchType(MatchType.EXCLUDE_UNMATCHED)
}
}
recurse(true)
columns {
status()
weather()
name()
lastSuccess()
lastFailure()
lastDuration()
buildButton()
}
}