File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed
main/groovy/javaposse/jobdsl/dsl/views
test/groovy/javaposse/jobdsl/dsl/views Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ Browse the Jenkins issue tracker to see any [open issues](https://issues.jenkins
2929
3030## Release Notes
3131* 1.65 (unreleased)
32+ * Enhanced support for the
33+ [ Delivery Pipeline Plugin] ( https://wiki.jenkins-ci.org/display/JENKINS/Delivery+Pipeline+Plugin )
3234* 1.64 (July 07 2017)
3335 * Increased the minimum supported Java version to JDK 7
3436 * Increased the minimum supported Jenkins version to 2.19
Original file line number Diff line number Diff line change @@ -193,6 +193,43 @@ class DeliveryPipelineView extends View {
193193 }
194194 }
195195
196+ /**
197+ * Show analysis results from
198+ * <a href =" https://wiki.jenkins.io/display/JENKINS/Analysis+Collector+Plugin" >Analysis Collector Plugin</a>.
199+ * Defaults to {@code false }.
200+ *
201+ * @since 1.65
202+ */
203+ void showStaticAnalysisResults (boolean value = true ) {
204+ configure {
205+ it / methodMissing(' showStaticAnalysisResults' , value)
206+ }
207+ }
208+
209+ /**
210+ * Use relative links for jobs in pipeline view.
211+ * Defaults to {@code false }.
212+ *
213+ * @since 1.65
214+ */
215+ void useRelativeLinks (boolean value = true ) {
216+ configure {
217+ it / methodMissing(' linkRelative' , value)
218+ }
219+ }
220+
221+ /**
222+ * Link jobs in pipeline view directly to the console log.
223+ * Defaults to {@code false }.
224+ *
225+ * @since 1.65
226+ */
227+ void linkToConsoleLog (boolean value = true ) {
228+ configure {
229+ it / methodMissing(' linkToConsoleLog' , value)
230+ }
231+ }
232+
196233 /**
197234 * Defines pipelines by either specifying names and start jobs or by regular expressions. Both variants can be
198235 * called multiple times to add different pipelines to the view.
Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ class DeliveryPipelineViewSpec extends Specification {
5858 showDescription()
5959 showPromotions()
6060 enablePaging()
61- showTestResults(true )
61+ showTestResults()
62+ showStaticAnalysisResults()
63+ useRelativeLinks()
64+ linkToConsoleLog()
6265 useTheme(' foo' )
6366
6467 pipelines {
@@ -121,6 +124,9 @@ class DeliveryPipelineViewSpec extends Specification {
121124 <showPromotions>true</showPromotions>
122125 <pagingEnabled>true</pagingEnabled>
123126 <showTestResults>true</showTestResults>
127+ <showStaticAnalysisResults>true</showStaticAnalysisResults>
128+ <linkRelative>true</linkRelative>
129+ <linkToConsoleLog>true</linkToConsoleLog>
124130 <theme>foo</theme>
125131 <componentSpecs>
126132 <se.diabol.jenkins.pipeline.DeliveryPipelineView_-ComponentSpec>
You can’t perform that action at this time.
0 commit comments