jenkinsci / jenkinsci/aws-credentials-plugin

example or documents please

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.