[JIRA] (JENKINS-62049) BlueOcean ignoring defaultValue of password parameter type

5 views
Skip to first unread message

jey.patronum@gmail.com (JIRA)

unread,
Apr 24, 2020, 9:19:02 AM4/24/20
to jenkinsc...@googlegroups.com
Evgenii Galkin created an issue
 
Jenkins / Bug JENKINS-62049
BlueOcean ignoring defaultValue of password parameter type
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: image-2020-04-24-16-07-16-573.png, image-2020-04-24-16-10-55-805.png
Components: blueocean-plugin
Created: 2020-04-24 13:18
Environment: Linux version 3.10.0-1062.12.1.el7.x86_64 (mock...@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Tue Feb 4 23:02:59 UTC 2020

Installation source:
[jenkins]
name=Jenkins-stable
baseurl=http://pkg.jenkins.io/redhat-stable
gpgcheck=1
Priority: Major Major
Reporter: Evgenii Galkin

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

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

jey.patronum@gmail.com (JIRA)

unread,
Apr 24, 2020, 10:44:04 AM4/24/20
to jenkinsc...@googlegroups.com
Evgenii Galkin commented on Bug JENKINS-62049
 
Re: BlueOcean ignoring defaultValue of password parameter type

Found in blueocean-core-js.js:56366

 _createClass(Password, [{
        key: 'render',
        value: function render() {
            // const debugging = React.createElement(DebugRender, this.props);
            // FIXME: defaultValue does not contain the value we wait for
            var _props = this.props,
                value = _props.defaultParameterValue.value,
                description = _props.description,
                name = _props.name,
                onChange = _props.onChange;

That is the reason of my ticket I guess. Have you any information about fix date? or workaround?

Reply all
Reply to author
Forward
0 new messages