Skip to content

Instantly share code, notes, and snippets.

@gustavohenrique
Created November 14, 2011 17:40
Show Gist options
  • Save gustavohenrique/1364563 to your computer and use it in GitHub Desktop.
Save gustavohenrique/1364563 to your computer and use it in GitHub Desktop.
find all projects that contains BSAD-Framework-2 string in pom.xml
#!/bin/bash
JOBS_DIR="/home/gustavo/.hudson/jobs"
RESULT_FILE="/tmp/projetos_bsad2.txt"
rm $RESULT_FILE
for job_dir in `/bin/ls -1 $JOBS_DIR`; do
pom="$job_dir/workspace/trunk/$job_dir-pom/pom.xml"
result=`grep "BSAD-Framework-2" $pom`
if [ "$result" != "" ]; then
project=${pom%%/*}
echo $project >> $RESULT_FILE
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment