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

EnvInjectPluginAction::buildEnvVars() injects masks instead of passwords to the environment

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I created a local and global password.
      In a shell step the password can be used successfully.
      In the next build step of my build I have the Gradle plugin, the password arrives as asterisks.

      As a work-around I have switched to use the MaskPassword plugin.

      Test Script build.gradle:

      task showGlobalEnv << {
      println '\''Test match:'\'' + (System.env.TEST_ENV == 'T123')
      System.env.TEST_ENV.each

      { println it }

      }

      Output from version 1.90 (successful):
      Test match:true
      T
      1
      2
      3

      Output from version 1.91 (failure):
      Test match:false
      *
      *
      *
      *
      *
      *
      *
      *

        Attachments

          Issue Links

            Activity

            mbtc Marcus Collins created issue -
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Link This issue is duplicated by JENKINS-28116 [ JENKINS-28116 ]
            aleksandr85 Aleksandr Borovkov made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            recena Manuel Recena Soto made changes -
            Assignee Gregory Boissinot [ gbois ] Manuel Jesús Recena Soto [ recena ]
            recena Manuel Recena Soto made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            oleg_nenashev Oleg Nenashev made changes -
            Summary EnvInject plugin passes astrisk to Gradle plugin EnvInjectPluginAction::buildEnvVars() injects masks instead of passwords to the environment
            recena Manuel Recena Soto made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is related to JENKINS-30090 [ JENKINS-30090 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 161587 ] JNJira + In-Review [ 196806 ]

              People

              • Assignee:
                recena Manuel Recena Soto
                Reporter:
                mbtc Marcus Collins
              • Votes:
                9 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: