Author: richard.opalka(a)jboss.com
Date: 2010-06-10 07:35:48 -0400 (Thu, 10 Jun 2010)
New Revision: 12456
Modified:
framework/trunk/hudson/hudson-home/jobs/MAVEN-REPOSITORY-CLEAN/config.xml
Log:
fixing hudson clean job
Modified: framework/trunk/hudson/hudson-home/jobs/MAVEN-REPOSITORY-CLEAN/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/MAVEN-REPOSITORY-CLEAN/config.xml 2010-06-10
08:10:24 UTC (rev 12455)
+++ framework/trunk/hudson/hudson-home/jobs/MAVEN-REPOSITORY-CLEAN/config.xml 2010-06-10
11:35:48 UTC (rev 12456)
@@ -10,11 +10,12 @@
USER=`whoami`
-if [ $USER = "hudson" ]; then
- rm -rf /data/maven-repos/hudson/repository
-else
+if [ -d /home/$USER/.m2/repository ]; then
rm -rf /home/$USER/.m2/repository
fi
+if [ -d /data/maven-repos/hudson/repository ]; then
+ rm -rf /data/maven-repos/hudson/repository
+fi
</command>
</hudson.tasks.Shell>
</builders>
Show replies by date