Skip to content

Commit

Permalink
option to use new buildslave name for executable
Browse files Browse the repository at this point in the history
  • Loading branch information
sqs committed Aug 21, 2010
1 parent 0b0ff6e commit 743bdc3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/buildbot/create_slave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ SECRET=secret
MASTER=hs02.scs.stanford.edu:9989
BUILDDIR=/tmp/tcbuild

BUILDSLAVE=${BUILDSLAVE-buildbot} # new buildbot vers use buildslave
SSH="ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -i $PRIVATE_KEY root@$HOST"

echo creating buildbot $NAME on $HOST
$SSH rm -rf $BUILDDIR/buildbot.tac
$SSH mkdir -p $BUILDDIR/build/$NAME
$SSH buildbot create-slave $BUILDDIR $MASTER $NAME $SECRET && \
$SSH $BUILDSLAVE create-slave $BUILDDIR $MASTER $NAME $SECRET && \
$SSH eval "uname -a > $BUILDDIR/info/host" && \
(echo `git config --get user.name` "<"`git config --get user.email`">" | $SSH eval "cat > $BUILDDIR/info/admin") && \
$SSH eval "cd $BUILDDIR && buildbot restart $BUILDDIR" && \
$SSH eval "cd $BUILDDIR && $BUILDSLAVE restart $BUILDDIR" && \
echo buildbot $NAME started on $HOST

0 comments on commit 743bdc3

Please sign in to comment.