jenkinsci / jenkinsci/aws-credentials-plugin

Getting "WARNING: Unknown parameter(s) found for class type 'com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentialsBinding': keyIdVariable,secretVariable" from my pipeline

Open
#68 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
30
Forks
81
PR merge metrics
No merged PRs in 30d

Description

The only relevant line I see is this
```
environment {
AN_ACCESS_KEY = credentials("${params.ENVIRONMENT}")
}
```
Where `${params.ENVIRONMENT}` referes to AWS credentials. The credentials work as expected with build succeeding, it's just a warning that is bothersome

I see the variables reported by the warning are set here -> https://github.com/jenkinsci/aws-credentials-plugin/blob/4f6e283034587c9481e4f50577723f3c111917bb/src/main/java/com/cloudbees/jenkins/plugins/awscredentials/AWSDeclarativeCredentialsHandler.java#L60

Contributor guide

Open the contributing guide

Research direction

Start with src/main/java/com/cloudbees/jenkins/plugins/awscredentials/AWSDeclarativeCredentialsHandler.java around line 60, where keyIdVariable and secretVariable are set. Reproduce the pipeline warning using the credentials expression shown in the issue and trace why those parameters are reported as unknown. Done means the credentials still work and the warning is no longer emitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java
Domain
devops, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.