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

Run declarative pipeline job with parameters fails if description is null

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: blueocean-plugin
    • Labels:
      None
    • Environment:
      ci.blueocean.io + 1.0-rc2
    • Epic Link:
    • Sprint:
      Blue Ocean 1.0-rc3, Blue Ocean 1.0-rc4, Blue Ocean - 1.1-beta-1
    • Similar Issues:

      Description

      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}"
            }
          }
        }
      }
      

        Attachments

          Activity

          Show
          michaelneale Michael Neale added a comment - Fix:  https://github.com/jenkinsci/blueocean-plugin/pull/928

            People

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

              Dates

              • Created:
                Updated:
                Resolved: