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

Credential plugin binding fails ,if the credential password contains special character like "("

    XMLWordPrintable

Details

    Description

      With credential plugin binding fails ,if the credential password contains special character like "("

      withCredentials(bindings: [this.steps.usernamePassword(credentialsId: 'testcred',      
                  usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) { 
      
                         sh ''' python tesfile.py --username $USERNAME \ 
                                                              --password $PASSWORD \ 
                                                               -- project test''' 
      }

      ERROR:

      /home/jenkins/agent/workspace/test@tmp/durable-3f95cefa/script.sh: line 1: syntax error: unexpected ")"

      Attachments

        Activity

          kjnam Eric Nam added a comment -

          The same issue occurred to me. A password with a few special characters including `)` fails to works with the plugin.

          kjnam Eric Nam added a comment - The same issue occurred to me. A password with a few special characters including `)` fails to works with the plugin.

          People

            Unassigned Unassigned
            touseef Touseef
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: