A groovy script could easily fix the job SCMs to use the single set of credentials.

It would be something like

for (job in Jenkins.getAllItems(Project.class)) {
  if (job.scm instanceof SubversionSCM) {
    boolean changed = false;
    for (loc in job.scm.modules) {
      if (loc.url.contains("svn.acme.org") && StringUtils.isEmpty(loc.credentialsId)) {
        loc.credentialsId = "uuid of credential goes here";
        changed = true;
      }
    }
    if (changed) {
      job.save();
    }
  }
}

But that is more pseudo-code, I will have to try it out a bit to get something that works... the principle is something like the above.

If such a job would work for your use case, please respond and I can see about getting a syntax correct functioning version

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to