Skip to content

Instantly share code, notes, and snippets.

@rodrigozrusso
Created July 31, 2015 07:57
Show Gist options
  • Save rodrigozrusso/5804e9c31a8e7d672bab to your computer and use it in GitHub Desktop.
Save rodrigozrusso/5804e9c31a8e7d672bab to your computer and use it in GitHub Desktop.
Find jobs has the same job configured as template with ProxyBuilder plugin
cd /var/lib/jenkins/jobs;
for i in `find . -name "config.xml" | grep -v backup_config | xargs grep -i "hudson.plugins.templateproject.ProxyBuilder" | cut -d ":" -f 1`; do echo $i; job=`echo $i|cut -d "/" -f 2`; echo "job=$job"; cat $i | grep -i projectname | grep $job;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment