Dec 9, 2014

[memo] How to change a git URL in all Jenkins jobs

Each job's configuration is saved at config.xml. So you just find old URL and change them to new URL like the below.


#stop jenkins
cd ~/jobs/
sed -i -e "s|git.old.com|git.new.com|" */config.xml
#start jenkins
view raw git_update_url hosted with ❤ by GitHub