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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.289.2

      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 ")"

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

              Created:
              Updated: