Skip to content

Commit

Permalink
add support for SCM type column in list views
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilszymanski committed Jan 5, 2017
1 parent 0afec3a commit d074e55
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Browse the Jenkins issue tracker to see any [open issues](https://issues.jenkins

## Release Notes
* 1.56 (unreleased)
* Enhanced support for the [Extra Columns Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Extra+Columns+Plugin)
([#978](https://github.com/jenkinsci/job-dsl-plugin/pull/978))
* 1.55 (January 03 2016)
* Updated optional
[Config File Provider Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Config+File+Provider+Plugin) dependency to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,14 @@ class ColumnsContext extends AbstractExtensibleContext {
triggerClass('hudson.triggers.SCMTrigger')
}
}

/**
* Adds a column showing the type of source code management that is used in the project.
*
* @since 1.56
*/
@RequiresPlugin(id = 'extra-columns', minimumVersion = '1.4')
void scmType() {
columnNodes << new Node(null, 'jenkins.plugins.extracolumns.SCMTypeColumn')
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ class ListViewSpec<T extends ListView> extends Specification {
'userName' | 'UserNameColumn' | '1.16'
'lastConfigurationModification' | 'LastJobConfigurationModificationColumn' | '1.14'
'workspace' | 'WorkspaceColumn' | '1.15'
'scmType' | 'SCMTypeColumn' | '1.4'
}

def 'build parameters column'() {
Expand Down

0 comments on commit d074e55

Please sign in to comment.