Skip to content

Commit

Permalink
Merge pull request #33 from recena/JENKINS-31162
Browse files Browse the repository at this point in the history
Support for Item categorization in Jenkins 2
  • Loading branch information
recena committed Mar 22, 2016
2 parents 3628523 + 420f904 commit 79490b4
Show file tree
Hide file tree
Showing 48 changed files with 115 additions and 498 deletions.
34 changes: 34 additions & 0 deletions src/main/java/hudson/matrix/MatrixProject.java
Expand Up @@ -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 Matrix projects are categorized in Jenkins 2.x.
*
* TODO: After Jenkins 2.0 this should be an @Override
*
* @return A string it represents a ItemCategory identifier.
*/
public String getCategoryId() {
return "standaloneprojects";
}

/**
* Needed if it wants Matrix projects are categorized in Jenkins 2.x.
*
* TODO: After Jenkins 2.0 this should be an @Override
*
* @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: After Jenkins 2.0 this should be an @Override
*
* @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);
}
Expand Down
Expand Up @@ -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 79490b4

Please sign in to comment.