jenkinsci / jenkinsci/aws-credentials-plugin
How to use with declarative pipeline?
Open
- Dominant language
- Java
- Stars
- 30
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
I tried using it with declarative pipeline and it giving me error.
```
stage('upload') {
environment {
AN_ACCESS_KEY = credentials('s3-upload-credential')
}
steps {
sh '''
printenv
'''
}
```
```
No suitable binding handler could be found for type com.cloudbees.jenkins.plugins.awscredentials.AWSCredentialsImpl. Supported types are StandardUsernamePasswordCredentials,FileCredentials,StringCredentials.
```
If it's not yet possible, what's the recommended workaround?
Contributor guide
Assessment
This issue has not been assessed yet.