jenkinsci / jenkinsci/aws-credentials-plugin
example or documents please
- Dominant language
- Java
- Stars
- 30
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
trying to figure out how to use this in a `Jenkinsfile`, finally got it to do something...
``` groovy
withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: 'dev', variable: 'AWS_ACCESS_KEY_ID']]) {
sh "echo this is ${env.AWS_ACCESS_KEY_ID}"
sh "echo this is ${env.AWS_SECRET_ACCESS_KEY}"
}
```
just displays ***\* but does not crash the script
Can someone give post a working hello world type code snippet example please?
thanks!
Contributor guide
Research direction
Start by reproducing the supplied withCredentials example in a Jenkinsfile, using the AmazonWebServicesCredentialsBinding entry point and the shown environment variables. Document a minimal working hello-world snippet and explain the expected masking of credential values without exposing secrets.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, groovy
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100