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

credentials() parameter does not support HTML in description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • credentials-plugin
    • None
    • Jenkins 2.121.1
      Pipeline Model Definition Plugin 1.3.1
      Credentials Plugin 2.1.17
    • 1118.v320cd028cb_a_0

      Hi,

      We have a declarative Pipeline definition cfr.

      def xra31_user_password_credentials_defaultValue = ''
      def xra31_user_password_credentials_description = '''Default password for the <em>xra31</em> user.
      <br />An appropriate password is selected by default (when "<em>- none -</em>" is selected).
      <br />Please choose the appropriate password for the <tt>XRA31_IMAGE_TYPE</tt>.
      <br />Especially <em>development</em> vs. <em>non-development</em> system.'''
      
      pipeline {
          parameters {
              credentials(name: 'XRA31_USER_CREDENTIALS',
                          credentialType: 'com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl',
                          defaultValue: xra31_user_password_credentials_defaultValue,
                          description: xra31_user_password_credentials_description,
                          required: false)
          }
      }

      When building this project ("Build with Parameters"), we don't see any HTML markup.

      See screenshot:

            microscotch Microscotch
            tom_ghyselinck Tom Ghyselinck
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: