Details
-
New Feature
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
Description
Currently you must write e.g.
step([$class: 'JUnitResultArchiver', testResults: 'target/surefire-reports/*.xml'])
which is awkward. Also in Snippet Generator you need to look under General Build Step for what to a user is logically a distinct step.
Metasteps (step, wrap, checkout) should have an API by which they can declare that their delegate (scm in the last case) ought to be treated as a top-level step as far as DSL and Snippetizer are concerned, via some kind of syntactic sugar. In the absence of any Jenkins core API which would allow a Descriptor to specify a short name (yaml-project tries to define one of its own), this would have to be constructed somehow from the $class, perhaps simply:
JUnitResultArchiver testResults: 'target/surefire-reports/*.xml'
or with just one mandatory parameter even
JUnitResultArchiver 'target/surefire-reports/*.xml'
The follow-up question is what to do with nested Describable objects used in the configuration. So
GitSCM ..., extensions: [[$class: 'PruneStaleBranch']]
still looks unnatural. The Groovy builder idiom might suggest
GitSCM ..., extensions: [PruneStaleBranch {}]
though closure handling in JENKINS-26135 would need to be addressed first. Requires study to make a PoC.
Attachments
Issue Links
- causes
-
JENKINS-63676 Unexpected behavior of pipelines, possibly due to symbol overlap
-
- Resolved
-
- depends on
-
JENKINS-45109 Metasteps fail to display the delegate symbol in console log
-
- Resolved
-
-
JENKINS-31582 Log / document the plugin usage in the flow nodes
-
- Resolved
-
- is blocked by
-
JENKINS-37215 Make HTML step reference honor metasteps
-
- In Review
-
-
JENKINS-38037 Single parameter metasteps don't work with named-parameter symbols as of workflow-cps 2.14
-
- Resolved
-
- is blocking
-
JENKINS-37227 Metastep support for checkout step
-
- Open
-
-
JENKINS-30519 Declarative job properties in multibranch
-
- Resolved
-
-
JENKINS-31247 Copyartifact: more integration with workflow
-
- Closed
-
- is related to
-
JENKINS-26126 DSLD and/or GDSL
-
- In Progress
-
-
JENKINS-35506 Add a symbol to the build step in the hpi Maven archetype
-
- Open
-
-
JENKINS-30088 Clean up step display
-
- Resolved
-
- relates to
-
JENKINS-29711 Snippet Generator: missing attribute names in single-entry forms
-
- Resolved
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is related to |
Link |
This issue depends on |
Assignee | Jesse Glick [ jglick ] | Kohsuke Kawaguchi [ kohsuke ] |
Summary | Promote delegates of metasteps to top-level functions | Promote delegates of metasteps to top-level functions, deprecate $class |
Link |
This issue is blocking |
Link |
This issue is blocking |
Link |
This issue depends on |
Assignee | Kohsuke Kawaguchi [ kohsuke ] |
Link | This issue is related to JENKINS-26126 [ JENKINS-26126 ] |
Epic Link | JENKINS-35394 [ 171187 ] |
Assignee | Kohsuke Kawaguchi [ kohsuke ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Remote Link | This issue links to "Change in the structs-plugin (Web Link)" [ 14558 ] |
Remote Link | This issue links to "Change for pipeline-step-api (Web Link)" [ 14559 ] |
Remote Link | This issue links to "Change in workflow-basic-steps-plugin (Web Link)" [ 14560 ] |
Remote Link | This issue links to "Change in pipeline cps plugin (Web Link)" [ 14561 ] |
Remote Link | This issue links to "Honorary mention of JUnit PR (Web Link)" [ 14565 ] |
Link |
This issue depends on |
Workflow | JNJira [ 165000 ] | JNJira + In-Review [ 185626 ] |
Remote Link | This issue links to "core PR 2484 (Web Link)" [ 14665 ] |
Link |
This issue relates to |
Remote Link | This issue links to "workflow-multibranch PR 22 (Web Link)" [ 14668 ] |
Remote Link | This issue links to "workflow-cps PR 35 (Web Link)" [ 14673 ] |
Remote Link | This issue links to "pipeline-plugin PR 401 (Web Link)" [ 14674 ] |
Remote Link | This issue links to "jenkins.io PR 324 (Web Link)" [ 14675 ] |
Remote Link | This issue links to "parallel-test-executor-plugin PR 19 (Web Link)" [ 14680 ] |
Remote Link | This issue links to "workflow-basic-steps PR 15 (Web Link)" [ 14681 ] |
Remote Link | This issue links to "workflow-aggregator PR 8 (Web Link)" [ 14689 ] |
Link | This issue is blocked by JENKINS-37215 [ JENKINS-37215 ] |
Remote Link | This issue links to "junit PR 53 (Web Link)" [ 14701 ] |
Remote Link | This issue links to "acceptance-test-harness PR 167 (Web Link)" [ 14702 ] |
Remote Link | This issue links to "workflow-job PR 15 (Web Link)" [ 14703 ] |
Remote Link | This issue links to "workflow-cps PR 37 (Web Link)" [ 14704 ] |
Remote Link | This issue links to "workflow-cps PR 38 (Web Link)" [ 14705 ] |
Link | This issue is blocking JENKINS-37227 [ JENKINS-37227 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
Component/s | pipeline-general [ 21692 ] |
Component/s | workflow-plugin [ 18820 ] |
Link | This issue is related to JENKINS-35506 [ JENKINS-35506 ] |
Link |
This issue is blocked by |
Link |
This issue depends on |
Link |
This issue causes |