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

Horizontal parameters

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      we have a need to have more then one parameter on a singe line for parameterized jobs. Please see attachment

        Attachments

          Activity

          Hide
          kinow Bruno P. Kinoshita added a comment -

          Hi Leslie,

          With Jenkins 2.0 being released soon (I believe this year), this issue might be given a lower priority as it could break with the next release, if we implemented a CSS/style change.

          However, Ioannis created an example for another issue that contains horizontal parameters. I've created a simple job and took a few screen shots. The parameters are HTML reference parameters. The script used for one of them is the following.

          html='''
          PRODUCT_01
          <input type="hidden">
          <select  name="value" >
          <option value="product_sms">SMS</option>
          <option value="product_email">email</option>
          </select>
          PRODUCT_02
          <select  name="value" >
          <option value="product_sms">SMS</option>
          <option value="product_email">email</option>
          </select>
          PRODUCT_03
          <select  name="value">
          <option value="product_sms">SMS</option>
          <option value="product_email">email</option>
          </select>
          '''
          return html
          

          The other parameter has a very similar script. Could you take a look at the screen shots and at these scripts and see if that would work for you, please?

          B

          Show
          kinow Bruno P. Kinoshita added a comment - Hi Leslie, With Jenkins 2.0 being released soon (I believe this year), this issue might be given a lower priority as it could break with the next release, if we implemented a CSS/style change. However, Ioannis created an example for another issue that contains horizontal parameters. I've created a simple job and took a few screen shots. The parameters are HTML reference parameters. The script used for one of them is the following. html=''' PRODUCT_01 <input type= "hidden" > <select name= "value" > <option value= "product_sms" >SMS</option> <option value= "product_email" >email</option> </select> PRODUCT_02 <select name= "value" > <option value= "product_sms" >SMS</option> <option value= "product_email" >email</option> </select> PRODUCT_03 <select name= "value" > <option value= "product_sms" >SMS</option> <option value= "product_email" >email</option> </select> ''' return html The other parameter has a very similar script. Could you take a look at the screen shots and at these scripts and see if that would work for you, please? B
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Oh, you also have to show the advanced settings of the parameter, and choose to omit the value attribute

          Show
          kinow Bruno P. Kinoshita added a comment - Oh, you also have to show the advanced settings of the parameter, and choose to omit the value attribute
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Leslie Klein sent me an e-mail to let me know that the workaround did the trick for him. Closing as won't fix.

          Show
          kinow Bruno P. Kinoshita added a comment - Leslie Klein sent me an e-mail to let me know that the workaround did the trick for him. Closing as won't fix.
          Hide
          anshukroy ANSHUK ROY added a comment -

          How do you reference or obtain the values selected  for Product_01 , Product_02, Product_03 later ?

          Show
          anshukroy ANSHUK ROY added a comment - How do you reference or obtain the values selected  for Product_01 , Product_02, Product_03 later ?

            People

            • Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              ikey Leslie Klein
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: