Skip to content

Commit a90b7cf

Browse files
author
Mikael Sundberg
committed
add support for new sorting option in delivery pipeline plugin
1 parent 92a408c commit a90b7cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/views/DeliveryPipelineView.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ class DeliveryPipelineView extends View {
233233
static enum Sorting {
234234
NONE('none'),
235235
TITLE('se.diabol.jenkins.pipeline.sort.NameComparator'),
236-
LAST_ACTIVITY('se.diabol.jenkins.pipeline.sort.LatestActivityComparator')
236+
LAST_ACTIVITY('se.diabol.jenkins.pipeline.sort.LatestActivityComparator'),
237+
FAILED_FIRST('se.diabol.jenkins.pipeline.sort.FailedJobComparator')
237238

238239
final String value
239240

job-dsl-core/src/test/groovy/javaposse/jobdsl/dsl/views/DeliveryPipelineViewSpec.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class DeliveryPipelineViewSpec extends Specification {
3838
Sorting.NONE | 'none'
3939
Sorting.TITLE | 'se.diabol.jenkins.pipeline.sort.NameComparator'
4040
Sorting.LAST_ACTIVITY | 'se.diabol.jenkins.pipeline.sort.LatestActivityComparator'
41+
Sorting.FAILED_FIRST | 'se.diabol.jenkins.pipeline.sort.FailedJobComparator'
4142
}
4243

4344
def 'all options'() {

0 commit comments

Comments
 (0)