Modify custom workspaces in all jenkins job

find . -maxdepth 2 -name config.xml | while read line ; do echo $line ; sed -i.bak -e 's/<customWorkspace>\/hudson<\/customWorkspace>/<customWorkspace>\/hudson\/workspace<\/customWorkspace>/' "$line" ; done

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.