1. VectorLinux Core
  2. vlbuildbot

Commits

M0E-lnx  committed aed2d12

Fixing scripts for multiple vabs monitoring slaves to work with their own repos in different paths

  • Participants
  • Parent commits 324cfa2
  • Branches master

Comments (0)

Files changed (2)

File slave/sbin/ro-chrootTEST

View file
 source /etc/vlbuildslave/slavehost.conf
 
 if [ -z "$GITREPO" ]; then
-	echo "GITREPO variable is empty.  This needs to point to the repo we are using" >&2
+	echo "$0 Error: GITREPO variable is empty.  This needs to point to the repo we are using" >&2
 	exit 1
 fi
 exit_status=""

File slave/usr/local/bin/changetest.sh

View file
 exit 1
 }
 
+if [ ! -d $GITREPO/.git ]; then
+	exit_error "$0 Error: $GITREPO does not appear to be a git repository.  Aborting build"
+	exit 1
+fi
+
+export GITREPO=$GITREPO
+
 source $CONF || exit_error "Unable to source $CONF"
 
 function get_jail_path {