jenkinsci / jenkinsci/aws-credentials-plugin

How to use with declarative pipeline?

Open
#22 13 comments 11 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.