Skip to content

Commit

Permalink
Merge pull request #62 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 7f69af5 + 6d6212d commit cc6027c
Show file tree
Hide file tree
Showing 43 changed files with 214 additions and 628 deletions.
33 changes: 33 additions & 0 deletions src/main/java/hudson/maven/MavenModuleSet.java
Expand Up @@ -1365,6 +1365,39 @@ public String getDisplayName() {
return Messages.MavenModuleSet_DiplayName();
}

/**
* 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 "standaloneprojects";
}

/**
* 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 with the Item description.
*/
public String getDescription() {
return Messages.MavenModuleSet_Description();
}

/**
* 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 URL pattern to get the Item icon in different sizes.
*/
public String getIconFilePathPattern() {
return "plugin/maven-plugin/images/:size/mavenmoduleset.png";
}

public MavenModuleSet newInstance(ItemGroup parent, String name) {
MavenModuleSet mms = new MavenModuleSet(parent,name);
mms.setSettings(GlobalMavenConfig.get().getSettingsProvider());
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.

0 comments on commit cc6027c

Please sign in to comment.