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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: