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

User can add and edit a block scoped step

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Fixed
    • Icon: Minor Minor
    • blueocean-plugin
    • None
    • tasman, frank

      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)

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

              Created:
              Updated:
              Resolved: