Commit 3ed53bd1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add SSHTIMEOUT var and use timeout command for ssh operations in gpush

parent 85c5d161
......@@ -64,8 +64,8 @@ push_to_remote()
echo
echo "** Push $TEXTBRANCH from $PROJECTNAME.git to $GHOST:packages/$PROJECTNAME.git"
# FIXME: push with one command
git push $PUSHALL $PUSHFORCE $GHOST:packages/$PROJECTNAME.git $TARGETBRANCH
git push --tags $GHOST:packages/$PROJECTNAME.git $TARGETBRANCH
timeout $SSHTIMEOUT git push $PUSHALL $PUSHFORCE $GHOST:packages/$PROJECTNAME.git $TARGETBRANCH
timeout $SSHTIMEOUT git push --tags $GHOST:packages/$PROJECTNAME.git $TARGETBRANCH
}
# if remote list is empty, do ginit
......
......@@ -50,6 +50,8 @@ CURRENTBRANCHNAME="M51"
#SSH_KEYFILE=~/.ssh/id_dsa
GIRARHOST=git.alt
# Timeout in sec for ssh commands
SSHTIMEOUT=30
BUILDSERVER=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment