Skip to content

Instantly share code, notes, and snippets.

@bigboy1122
bigboy1122 / jenkins-set-credis.groovy
Created March 26, 2016 19:15 — forked from hgomez/jenkins-set-credis.groovy
Jenkins Groovy script to set CredentialsId
import hudson.model.*
import hudson.maven.*
import hudson.tasks.*
import hudson.scm.*
def match_url = "http://svn.mycorp.com/svn/devops"
for(item in Hudson.instance.items) {
hasClaim = false;
if (item.scm instanceof SubversionSCM)