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

Developer should be told which input type is not supported

XMLWordPrintable

    • Blue Ocean - Candidates

      Scope

      • Update the message so that it includes what input type Blue Ocean could not read
      • Ensure we have this for parameterised jobs and input steps
      • Message should look something like:
        This pipeline uses unsupported input type $inputType(s). Use Jenkins Classic to resolve this parametrized build.
        

      Problem
      The error message displayed in a dialog box when attempting to run a build that uses a parameter input type unsupported by BO fails with this error message:

      This pipeline uses input types that are unsupported. Use Jenkins Classic to resolve parametrized build.
      

      The error string does not tell you the name of the offending parameter or the unsupported parameter type. Nor does it enumerate or link to a list of the supported input parameter types.

      The error string is defined here:

      https://github.com/jenkinsci/blueocean-plugin/blob/0ebd0427dae366ea6fafb2e140dcb7f283103791/blueocean-web/src/main/resources/jenkins/plugins/blueocean/web/Messages.properties#L35

      which is coming from:

      https://github.com/jenkinsci/blueocean-plugin/blob/0ebd0427dae366ea6fafb2e140dcb7f283103791/blueocean-web/src/main/resources/jenkins/plugins/blueocean/web/Messages.properties#L35

      The enum of supported types is here:

      https://github.com/jenkinsci/blueocean-plugin/blob/d4a615534c8f8a5e94affc1a612038be90b109f9/blueocean-core-js/src/js/parameter/index.js#L20

            jsoref Josh Soref
            jhoblitt Joshua Hoblitt
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: