jenkinsci / jenkinsci/credentials-binding-plugin
[JENKINS-66365] Credential plugin binding fails ,if the credential password contains special character like "("
- Dominant language
- Java
- Stars
- 57
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
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 ")"
---
Originally reported by touseef, imported from: Credential plugin binding fails ,if the credential password contains special character like "("
Raw content of original issue
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 ")"
- environment:
Jenkins 2.289.2
Contributor guide
Assessment
This issue has not been assessed yet.