Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38587

User can add and edit a block scoped step

    XMLWordPrintable

    Details

    • Sprint:
      tasman, frank
    • Similar Issues:

      Description

      In scope

      • User can add a block scoped step to the main step list
      • User can click on a block scoped step and edit its attributes
      • Should look like the screenshot below

      A block scoped step has some attributes separate from its children.

      Similar to https://issues.jenkins-ci.org/browse/JENKINS-38585 - this is easier to explain with an example of the model/json:

      "steps": [      {
              "name": "timeout",
              "arguments":         [
                          {
                  "key": "time",
                  "value":             {
                    "isConstant": true,
                    "value": 5
                  }
                },
                          {
                  "key": "unit",
                  "value":             {
                    "isConstant": true,
                    "value": "SECONDS"
                  }
                }
              ],
              "children": [        {
                "name": "echo",
                "arguments":           {
                  "isConstant": true,
                  "value": "hello"
                }
              }]
            }]
          }]
        }]
      

      (from https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/master/src/test/resources/json/validStepParameters.json)

      You can see that the step name is timeout - which has arguments and children (children are other steps). The number and type of arguments are dependent on the step (timeout and retry are the most common ones that we want to support)

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                kzantow Keith Zantow
                Reporter:
                jamesdumay James Dumay
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: