Skip to content
Permalink
Browse files
[JENKINS-31162] Support for Item categorization in Jenkins 2
  • Loading branch information
recena committed Mar 21, 2016
1 parent 3628523 commit c36474b9ceabcaa3634aae7e8c8077028a830fa8
Showing 48 changed files with 115 additions and 498 deletions.
@@ -991,10 +991,44 @@ public DescriptorImpl getDescriptor() {
public static final DescriptorImpl DESCRIPTOR = new DescriptorImpl();

public static final class DescriptorImpl extends AbstractProjectDescriptor {

public String getDisplayName() {
return Messages.MatrixProject_DisplayName();
}

/**
* Needed if it wants Maven projects are categorized in Jenkins 2.x.
*
* TODO: Override when the baseline is upgraded to 2.x
*
* @return A string it represents a ItemCategory identifier.
*/
public String getCategoryId() {
return "itemcategory-standaloneprojects";
}

/**
* Needed if it wants Matrix projects 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.MatrixProject_Description();
}

/**
* Needed if it wants Matrix projects 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/matrix-project/images/:size/matrixproject.png";
}

public MatrixProject newInstance(ItemGroup parent, String name) {
return new MatrixProject(parent,name);
}
@@ -24,5 +24,5 @@ THE SOFTWARE.

<?jelly escape-by-default='true'?>
<div>
${%body}
${it.description}
</div>

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit c36474b

Please sign in to comment.