Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-31162] Support for Item categorization for MultiBranchProjects
  • Loading branch information
recena committed Apr 6, 2016
1 parent 0d311cd commit 09d0808
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 28 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -89,7 +89,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>cloudbees-folder</artifactId>
<version>5.2.1</version>
<version>5.8-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
Expand Down
Expand Up @@ -71,7 +71,15 @@ public WorkflowMultiBranchProject(ItemGroup parent, String name) {
@Extension public static class DescriptorImpl extends MultiBranchProjectDescriptor {

@Override public String getDisplayName() {
return "Multibranch Pipeline";
return Messages.WorkflowMultiBranchProject_DisplayName();
}

public String getDescription() {
return Messages.WorkflowMultiBranchProject_Description();
}

public String getIconFilePathPattern() {
return "plugin/workflow-images/:size/pipelinemultibranchproject.png";
}

@Override public TopLevelItem newInstance(ItemGroup parent, String name) {
Expand Down
@@ -0,0 +1,2 @@
WorkflowMultiBranchProject.DisplayName=Multibranch Pipeline
WorkflowMultiBranchProject.Description=Creates a set of Pipeline projects according to detected branches in one SCM repository.
Expand Up @@ -24,6 +24,6 @@ THE SOFTWARE.
-->

<?jelly escape-by-default='true'?>
<div>
${%body}
</div>
<j:jelly xmlns:j="jelly:core">
<j:out value="${it.description}"/>
</j:jelly>

This file was deleted.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 09d0808

Please sign in to comment.