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

Integer and decimal step parameters are save as string in Pipeline Editor

    XMLWordPrintable

Details

    • 1.0

    Description

      When editing a step with an integer parameter (for example Sleep), the saved value for this parameter is a string, and this make the resulting pipeline failing.

      Here is an sample of what is generated by the pipeline editor

      sleep(time: '5', unit: 'MINUTES')
      

      and what is should have been

      sleep(time: 5, unit: 'MINUTES')
      

       

      Attachments

        Activity

          jviolas jeremie violas created issue -
          jviolas jeremie violas made changes -
          Field Original Value New Value
          Epic Link JENKINS-36291 [ 172300 ]
          jamesdumay James Dumay made changes -
          Component/s pipeline-model-definition-plugin [ 21706 ]
          jamesdumay James Dumay made changes -
          Sprint 1.0 [ 221 ]
          jamesdumay James Dumay made changes -
          Assignee James Dumay [ jamesdumay ] jeremie violas [ jviolas ]
          jamesdumay James Dumay made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          jamesdumay James Dumay made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          abayer Andrew Bayer made changes -
          Remote Link This issue links to "Declarative PR #133 (Web Link)" [ 15655 ]
          batmat Baptiste Mathus made changes -
          Remote Link Cette demande est liée à "blueocean-pipeline-editor-plugin#30 (Lien Web)" [ 15657 ]
          jamesdumay James Dumay made changes -
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Resolved [ 5 ]
          jbriden Jenn Briden made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          People

            jviolas jeremie violas
            jviolas jeremie violas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: