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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major
    • None
    • Environment:
      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 ")"

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

              Created:
              Updated: