Created
November 14, 2011 17:40
-
-
Save gustavohenrique/1364563 to your computer and use it in GitHub Desktop.
find all projects that contains BSAD-Framework-2 string in pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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