Skip to content

Commit

Permalink
Merge pull request #229 from joseblas/add-symbol-to-mbp-descriptor
Browse files Browse the repository at this point in the history
Adding symbol to the WorkflowMultiBranchProject class descriptor
  • Loading branch information
jglick authored Feb 10, 2023
2 parents e4aa6a8 + 98d54f4 commit 1090461
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import org.jenkins.ui.icon.Icon;
import org.jenkins.ui.icon.IconSet;
import org.jenkins.ui.icon.IconSpec;
import org.jenkinsci.Symbol;
import org.jenkinsci.plugins.workflow.cps.Snippetizer;
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
import org.jenkinsci.plugins.workflow.job.WorkflowRun;
Expand Down Expand Up @@ -133,7 +134,8 @@ private BranchJobProperty reconstructBranchJobProperty(@NonNull WorkflowJob job,
strategy != null ? strategy.getPropertiesFor(head) : Collections.emptyList()));
}

@Extension public static class DescriptorImpl extends MultiBranchProjectDescriptor implements IconSpec {
@Extension @Symbol({"multibranch"})
public static class DescriptorImpl extends MultiBranchProjectDescriptor implements IconSpec {

@NonNull
@Override public String getDisplayName() {
Expand Down

0 comments on commit 1090461

Please sign in to comment.