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

BlueOcean ignoring defaultValue of password parameter type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • blueocean-plugin
    • None

      Example pipeline:

      pipeline {
         agent any
          parameters {
            password(name: 'env_db_password', defaultValue: '123456', description: 'Database password')
          }
         stages {
            stage('Use password') {
               steps {
        
      			sh label:"Test Params",script:'''
      			        echo ${env_db_password} > ./.env
      			        cat ./.env
                          '''
               }
            }
         }
      }
      

      If you run this pipeline from classic UI input will contain masked default value, and pipeline works correct.

      But if you use BlueOceanUI, input will be empty and pipeline starting with empty value instead  default.

       

      My version is 1.23.0 · Core 2.204.2 · 1115daf  · 20th April 2020 11:55 PM

       

            Unassigned Unassigned
            jey_patronum Evgenii Galkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: