ghale / gradle-jenkins-plugin

Gradle plugin to programmatically configure Jenkins jobs.
123 stars 42 forks source link

Support for Credentials Plugin #47

Closed itavero closed 9 years ago

itavero commented 9 years ago

Does anyone know how to configure the credentials for a Subversion repository using DSL? We are using the Jenkins Credentials Plugin.

When I run updateJenkinsItems it currently clears the credentials selected, because I don't have them configured in build.gradle.

ghale commented 9 years ago

Take a look at #38 for some background on the struggles here. I haven't looked at the code since then, but a quick scan of the credentials plugin release notes doesn't show any change. The rest service for credentials plugin doesn't support mapping from credentials name to uuid. This makes it impossible for something external to lookup and supply the uuid at job config time. You can directly provide the uuid of the credentials in the job config, however. Not an ideal solution, of course, but it's what the credentials plugin currently supports from a REST perspective.