Permalink
Browse files

Fix copy-hdfs-jars-to-maven.sh to unbreak Jenkins HBase builds

Summary:
Apparently the COMMANDER_WORKSPACE variable is not set in the Jenkins
environment, so using the username to determine whether we are running
as part of a Jenkins build.

Simple change, not reviewed.

Test Plan:
Tested on a build server.
  • Loading branch information...
1 parent 4156033 commit 8ce517d6dbddcb21b96aec38b3a9ca8a205b38a3 mbautin committed with Alex Feinberg Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 copy-hdfs-jars-to-maven.sh
View
2 copy-hdfs-jars-to-maven.sh
@@ -50,7 +50,7 @@ echo "** HBase builds will pick up the HDFS* jars from the local maven repo."
# the localRepository for a central mvn repo that can be shared between
# all of the build/test agents
OPTS=""
-if [ -n "${COMMANDER_WORKSPACE:-}" ];then
+if [[ -n "${COMMANDER_WORKSPACE:-}" || "$USER" == "svcscm" ]]; then
OPTS="-s /scm/git/electric/hadoop_builds/settings.xml"
fi

0 comments on commit 8ce517d

Please sign in to comment.