Skip to content
Permalink
Browse files
[JENKINS-31162] Support for Item categorization in Jenkins 2
Originally-Committed-As: e99d4bc50b04553d14c209fe670228a6f435b196
  • Loading branch information
recena committed Apr 4, 2016
1 parent 9b098c6 commit e8cad2297f6af419eb28cd31ec8218c4b9b3ba5a
Showing 4 changed files with 39 additions and 4 deletions.
@@ -597,6 +597,39 @@ public static void alias() {
return new WorkflowJob(parent, name);
}

/**
* Needed if it wants Pipeline jobs 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 Pipeline jobs 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.WorkflowJob_Description();
}

/**
* Needed if it wants Pipeline jobs 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/workflow-job/images/:size/pipelinejob.png";
}

/** TODO JENKINS-20020 can delete this in case {@code f:dropdownDescriptorSelector} defaults to applying {@code h.filterDescriptors} */
@Restricted(DoNotUse.class) // Jelly
public Collection<FlowDefinitionDescriptor> getDefinitionDescriptors(WorkflowJob context) {
@@ -1,2 +1,6 @@
BlockedBecauseOfBuildInProgress.shortDescription=Build #{0} is already in progress{1}
BlockedBecauseOfBuildInProgress.ETA=\ (ETA:{0})
BlockedBecauseOfBuildInProgress.ETA=\ (ETA:{0})

WorkflowJob.Description=Orchestrates long-running activities that can span multiple build slaves. Suitable for \
building pipelines (formerly known as workflows) and/or organizing complex activities that do not easily fit in \
free-style job type.
@@ -25,7 +25,5 @@
-->

<j:jelly xmlns:j="jelly:core">
Orchestrates long-running activities that can span multiple build slaves. Suitable for
building pipelines (formerly known as workflows) and/or organizing complex activities that do not easily fit
in free-style job type.
${it.description}
</j:jelly>
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 e8cad22

Please sign in to comment.