Run declarative pipeline job with parameters fails if description is null

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: blueocean-plugin
    • None
    • Environment:
      ci.blueocean.io + 1.0-rc2
    • Blue Ocean 1.0-rc3, Blue Ocean 1.0-rc4, Blue Ocean - 1.1-beta-1

      If a parameter is configured via declarative pipeline, and no description is set, it will cause the "Run job" button "not work at all" inside blueocean.

      It should work, as descriptions are optional

      Console stack trace

      blueocean.js:7226 Uncaught Error: Invalid arg type for "markupText". Must be a string.
          at removeMarkupTags (blueocean.js:7226)
          at String.render (blueocean.js:4316)
          at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (blueocean.js:84749)
          at ReactCompositeComponentWrapper._renderValidatedComponent (blueocean.js:84772)
          at ReactCompositeComponentWrapper.performInitialMount (blueocean.js:84314)
          at ReactCompositeComponentWrapper.mountComponent (blueocean.js:84210)
          at Object.mountComponent (blueocean.js:91223)
      

      Example Job

      See - https://ci.blueocean.io/blue/organizations/jenkins/scratch%2Fbwalding%2Ftest-parameter/

      pipeline {
        agent any
        parameters {
          // Note the lack of description
          string(name: 'PERSON', defaultValue: 'Mr Jenkins')
        }
      
        stages {
          stage('Example') {
            steps {
              echo "Hello ${params.PERSON}"
            }
          }
        }
      }
      

            Assignee:
            Ivan Meredith
            Reporter:
            Ben Walding
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: