The same JS issue appears to be making it impossible to update the configuration of a project if Credentials Binding is in use.
Environment:
Jenkins 2.46.2
aws-lambda:0.5.10
credentials-binding:1.11
aws-credentials:1.16
Steps:
- Create a Freestyle project
- Check Use secret text(s) or file(s)
- Add Username and password (separated) or AWS access key and secret binding
- Add AWS Lambda deployment post-build action with at least one Lambda deployment
- Save
- Open configuration again
- Try to save again
Expected:
Save is successful
Actual:
Save fails with bellow error
The same JS issue appears to be making it impossible to update the configuration of a project if Credentials Binding is in use.
Environment:
Jenkins 2.46.2
aws-lambda:0.5.10
credentials-binding:1.11
aws-credentials:1.16
Steps:
Create a Freestyle project
Check Use secret text(s) or file(s)
Add Username and password (separated) or AWS access key and secret binding
Add AWS Lambda deployment post-build action with at least one Lambda deployment
Save
Open configuration again
Try to save again
Expected:
Save is successful
Actual:
Save fails with bellow error
org.kohsuke.stapler.WrongTypeException: Got type array but no lister class found for type class java.lang.String
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:723)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:777)
Caused: java.lang.IllegalArgumentException: Failed to convert the credentialsId parameter of the constructor public com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentialsBinding(java.lang.String,java.lang.String,java.lang.String)
at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:779)
at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
Caused: java.lang.IllegalArgumentException: Failed to instantiate class com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentialsBinding from {"accessKeyVariable":"AWS_ACCESS_KEY_ID","secretKeyVariable":"AWS_SECRET_ACCESS_KEY","credentialsId":["aws-credential-1",""],"stapler-class<span class="code-quote">":"com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentialsBinding","$class<span class="code-quote">":"com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentialsBinding"}
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:680)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474)
at hudson.model.Descriptor.newInstance(Descriptor.java:591)
Caused: java.lang.Error: Failed to instantiate class com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentialsBinding from {"accessKeyVariable":"AWS_ACCESS_KEY_ID","secretKeyVariable":"AWS_SECRET_ACCESS_KEY","credentialsId":["aws-credential-1",""],"stapler-class<span class="code-quote">":"com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentialsBinding","$class<span class="code-quote">":"com.cloudbees.jenkins.plugins.awscredentials.AmazonWebServicesCredentialsBinding"}
The same JS issue appears to be making it impossible to update the configuration of a project if Credentials Binding is in use.
Environment:
Jenkins 2.46.2
aws-lambda:0.5.10
credentials-binding:1.11
aws-credentials:1.16
Steps:
Expected:
Save is successful
Actual:
Save fails with bellow error
The same JS issue appears to be making it impossible to update the configuration of a project if Credentials Binding is in use.
Environment:
Jenkins 2.46.2
aws-lambda:0.5.10
credentials-binding:1.11
aws-credentials:1.16
Steps:
Create a Freestyle project
Check Use secret text(s) or file(s)
Add Username and password (separated) or AWS access key and secret binding
Add AWS Lambda deployment post-build action with at least one Lambda deployment
Save
Open configuration again
Try to save again
Expected:
Save is successful
Actual:
Save fails with bellow error