Adjust how steps are displayed, to make the appearance cleaner and keep a focus on the DSL. Suggested changes:
- Make Snippet Generator list the StepDescriptor.functionName first, as a sort key, followed by the StepDescriptor.displayName. So for example, you might see a pulldown entry sh: run a Unix shell script.
- Change the console log to print just the functionName, not the displayName.
- For steps which add LabelAction, like stage, follow the function name with the label: stage: Production. That probably means this call is no longer useful.
- For block start/stop nodes, perhaps show something like node { or } // node.
- Metasteps (checkout, step, wrap) need changes but this is covered by
JENKINS-29922. - Ideally, use ConsoleNote to render metadata with special markup so it does not distract from build output.
- Tweak the display of Workflow Steps similarly. (FlowNode.getDisplayName might still be OK here if the implementation were modified somewhat.)
- depends on
-
JENKINS-26156 Erroneous handling of BodyInvoker.withDisplayName
-
- Resolved
-
-
JENKINS-26107 Allow stage to operate as a labelled block
-
- Closed
-
-
JENKINS-27394 Render stages in logs as collapsible sections
-
- Resolved
-
-
JENKINS-28293 Display more information about Pipeline steps
-
- Resolved
-
-
JENKINS-31595 Improve metadata logs for parallel step
-
- Resolved
-
- is related to
-
JENKINS-29922 Promote delegates of metasteps to top-level functions, deprecate $class
-
- Resolved
-
-
JENKINS-30086 Clean up step help
-
- Resolved
-
Code changed in jenkins
User: Antonio Muñiz
Path:
api/src/main/java/org/jenkinsci/plugins/workflow/graph/FlowNode.java
http://jenkins-ci.org/commit/workflow-api-plugin/4f0f99d7e51f4ea2337e19c1981d71c138cb6419
Log:
JENKINS-30088Use the function name instead of the display nameOriginally-Committed-As: 577f2acb256c0c91eaa81abe3177b4248bbaa059