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

Job parameter entry dialog does not say what the parameter is

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • blueocean-plugin
    • None
    • Blue Ocean 1.2, Blue Ocean 1.3

      Scope

      • If the description is unavailable then we should fall back to displaying the name field instead
      • Check that this is the case for parameterised jobs as well as pipeline input steps

      Problem
      When I launch a job that requires parameters, it pops a dialog to enter the parameter value.

      But it does not say which parameter is being entered (i.e. the parameter metadata is not shown).

      vs

          [JENKINS-45391] Job parameter entry dialog does not say what the parameter is

          James Dumay added a comment -

          bwalding This smells like a bug. Do you have a sample Jenkinsfile?

          James Dumay added a comment - bwalding This smells like a bug. Do you have a sample Jenkinsfile?

          Ben Walding added a comment -

          I dug deeper - it's because I don't have descriptions on some of my parameters - e.g. DOCKER_LABEL

          Should the behaviour be to fall back to the name rather than show nothing (description isn't mandatory)?

          E.g.

          pipeline {
              agent any 
              parameters {
                  string(name: 'KIND', defaultValue: 'Not-sausage', description: 'What kind of sandwich would you like?')
                  string(name: 'CONDIMENT', defaultValue: 'Mustard')
              }
              
              stages {
                  stage('Build') { 
                      steps { 
                          print '${KIND} sandwich with ${CONDIMENT}' 
                      }
                  }
              }
          }
          

          Ben Walding added a comment - I dug deeper - it's because I don't have descriptions on some of my parameters - e.g. DOCKER_LABEL Should the behaviour be to fall back to the name rather than show nothing (description isn't mandatory)? E.g. pipeline { agent any parameters { string(name: 'KIND', defaultValue: 'Not-sausage', description: 'What kind of sandwich would you like?') string(name: 'CONDIMENT', defaultValue: 'Mustard') } stages { stage('Build') { steps { print '${KIND} sandwich with ${CONDIMENT}' } } } }

          Michael Neale added a comment -

          nicu feel free to sync with cliffmeyers if you need any help with this. 

          Michael Neale added a comment - nicu feel free to sync with cliffmeyers if you need any help with this. 

            nicu Nicolae Pascu
            bwalding Ben Walding
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: