Skip to content

Commit

Permalink
enchance support for delivery pipeline view
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilszymanski committed Aug 7, 2017
1 parent baac0c2 commit 61ff541
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Browse the Jenkins issue tracker to see any [open issues](https://issues.jenkins

## Release Notes
* 1.65 (unreleased)
* Enhanced support for the
[Delivery Pipeline Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Delivery+Pipeline+Plugin)
* 1.64 (July 07 2017)
* Increased the minimum supported Java version to JDK 7
* Increased the minimum supported Jenkins version to 2.19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,43 @@ class DeliveryPipelineView extends View {
}
}

/**
* Show analysis results from
* <a href="https://wiki.jenkins.io/display/JENKINS/Analysis+Collector+Plugin">Analysis Collector Plugin</a>.
* Defaults to {@code false}.
*
* @since 1.65
*/
void showStaticAnalysisResults(boolean value = true) {
configure {
it / methodMissing('showStaticAnalysisResults', value)
}
}

/**
* Use relative links for jobs in pipeline view.
* Defaults to {@code false}.
*
* @since 1.65
*/
void useRelativeLinks(boolean value = true) {
configure {
it / methodMissing('linkRelative', value)
}
}

/**
* Link jobs in pipeline view directly to the console log.
* Defaults to {@code false}.
*
* @since 1.65
*/
void linkToConsoleLog(boolean value = true) {
configure {
it / methodMissing('linkToConsoleLog', value)
}
}

/**
* Defines pipelines by either specifying names and start jobs or by regular expressions. Both variants can be
* called multiple times to add different pipelines to the view.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ class DeliveryPipelineViewSpec extends Specification {
showDescription()
showPromotions()
enablePaging()
showTestResults(true)
showTestResults()
showStaticAnalysisResults()
useRelativeLinks()
linkToConsoleLog()
useTheme('foo')

pipelines {
Expand Down Expand Up @@ -121,6 +124,9 @@ class DeliveryPipelineViewSpec extends Specification {
<showPromotions>true</showPromotions>
<pagingEnabled>true</pagingEnabled>
<showTestResults>true</showTestResults>
<showStaticAnalysisResults>true</showStaticAnalysisResults>
<linkRelative>true</linkRelative>
<linkToConsoleLog>true</linkToConsoleLog>
<theme>foo</theme>
<componentSpecs>
<se.diabol.jenkins.pipeline.DeliveryPipelineView_-ComponentSpec>
Expand Down

0 comments on commit 61ff541

Please sign in to comment.