You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately I get the following error but just can't work out what I'm doing wrong.
[ Failed to run script file:/var/jenkins_home/init.groovy.d/add-credentials.groovy
groovy.lang.GroovyRuntimeException: Could not find matching constructor for: com.github.kostyasha.yad.credentials.DockerRegistryAuthCredentials(com.cloudbees.plugins.credentials.CredentialsScope$2, groovy.util.ConfigObject, java.lang.String, groovy.util.ConfigObject, java.lang.String, groovy.util.ConfigObject)](url)
The text was updated successfully, but these errors were encountered:
I'm trying to create a new Docker Auth credential using Groovy (based on but keep running into errors.
I'm using this as my guide, but I'm quite new to all of this.
https://www.programcreek.com/java-api-examples/?code=KostyaSha/yet-another-docker-plugin/yet-another-docker-plugin-master/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/credentials/DockerRegistryAuthCredentials.java
I already use this method for pulling in password/ssh type credentials without any issue so I can't see that I have done anything wrong.
add-credentials.groovy file
creds = new DockerRegistryAuthCredentials(CredentialsScope.GLOBAL, it.value.id, it.value.description, it.value.username, it.value.password, it.value.email) store.addCredentials(domain, creds)
jenkins.properties file - This gets pulled into the file above at runtime using ConfigSlurper.
Unfortunately I get the following error but just can't work out what I'm doing wrong.
The text was updated successfully, but these errors were encountered: