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

Your email address will not be published. Required fields are marked *

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