[Solved] Groovy script to change the svn url in jenkins jobs


Does it have to be a Groovy script? I would simply login to the Jenkins master host and run this sed oneliner:

$ sed -i 's#svn://old-url#svn://new-url#g' \
         "$JENKINS_HOME"/jobs/*/config.xml

and reload the configuration from disk.

0

solved Groovy script to change the svn url in jenkins jobs