Skip to content
Permalink
Browse files
[JENKINS-31162] Support for Item categorization in Jenkins 2
  • Loading branch information
recena committed Apr 4, 2016
1 parent 40b4966 commit a7691cc5a63f8b3237fc4f53d8f58e2fe9711a8c
Showing 5 changed files with 39 additions and 4 deletions.
@@ -40,6 +40,40 @@ public String getDisplayName() {
return Messages.Folder_DisplayName();
}

/**
* Needed if it wants Folders are categorized in Jenkins 2.x.
*
* TODO: Override when the baseline is upgraded to 2.x
* TODO: Replace to {@code NestedProjectsCategory.ID}
*
* @return A string it represents a ItemCategory identifier.
*/
public String getCategoryId() {
return "nestedprojects";
}

/**
* Needed if it wants Folders are categorized in Jenkins 2.x.
*
* TODO: Override when the baseline is upgraded to 2.x
*
* @return A string with the Item description.
*/
public String getDescription() {
return Messages.Folder_Description();
}

/**
* Needed if it wants Folder are categorized in Jenkins 2.x.
*
* TODO: Override when the baseline is upgraded to 2.x
*
* @return A string it represents a URL pattern to get the Item icon in different sizes.
*/
public String getIconFilePathPattern() {
return "plugin/cloudbees-folder/images/:size/folder.png";
}

/**
* Properties that can be configured for this type of {@link AbstractFolder} subtype.
*/
@@ -23,5 +23,5 @@ THE SOFTWARE.
-->
<?jelly escape-by-default='true'?>
<div>
${%body}
<j:out value="${it.description}"/>
</div>

This file was deleted.

@@ -1,4 +1,8 @@
Folder.DisplayName=Folder
Folder.DefaultPronoun=Item
Folder.Description=Creates a container that stores nested items in it. Useful for grouping things together. Unlike \
view, which is just a filter, a folder creates a separate namespace, so you can have multiple things of the same name \
as long as they are in different folders.

RelocateAction.permission.desc=Required to move a job from one folder (or Jenkins root) to another.
RelocateAction.displayName=Move
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 a7691cc

Please sign in to comment.