Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-30088] Use the function name instead of the display name
Originally-Committed-As: 577f2acb256c0c91eaa81abe3177b4248bbaa059
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
job/src/main/java/org/jenkinsci/plugins/workflow/job/console/WorkflowRunConsoleNote.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.jenkinsci.plugins.workflow.job.console; | ||
|
||
import org.jenkinsci.plugins.workflow.job.WorkflowRun; | ||
|
||
import hudson.Extension; | ||
import hudson.MarkupText; | ||
import hudson.console.ConsoleAnnotationDescriptor; | ||
import hudson.console.ConsoleAnnotator; | ||
import hudson.console.ConsoleNote; | ||
import hudson.model.Run; | ||
|
||
public class WorkflowRunConsoleNote extends ConsoleNote<Run<?, ?>> { | ||
|
||
@Override | ||
public ConsoleAnnotator<Run<?,?>> annotate(Run<?, ?> context, MarkupText text, int charPos) { | ||
if (context instanceof WorkflowRun) { | ||
// TODO | ||
} | ||
return null; | ||
} | ||
|
||
@Extension | ||
public static final class DescriptorImpl extends ConsoleAnnotationDescriptor { | ||
public String getDisplayName() { | ||
return "Workflow Console Note"; | ||
} | ||
} | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
} |