-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rakshitha Kamath <[email protected]>
- Loading branch information
Rakshitha Kamath
authored and
Rakshitha Kamath
committed
Jun 20, 2023
1 parent
cf571a6
commit 8d13406
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,16 +7,14 @@ if [[ -n "$GERRIT_REFSPEC" ]]; then | |
GERRIT_PUBLISH=true | ||
fi | ||
|
||
#ssh -o 'StrictHostKeyChecking no' -p 29418 [email protected] -v | ||
|
||
if ! [ -d nfs-ganesha ]; then | ||
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git clone --depth=1 -o gerrit ssh://$GERRIT_USER@review.gerrithub.io:29418/ffilz/nfs-ganesha.git -v | ||
GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i $GERRITHUB_KEY" git clone --depth=1 -o gerrit ssh://$GERRIT_USER@review.gerrithub.io:29418/ffilz/nfs-ganesha.git -v | ||
fi | ||
|
||
( cd nfs-ganesha && git fetch gerrit $GERRIT_REF && git checkout $REVISION ) | ||
|
||
publish_checkpatch() { | ||
local SSH_GERRIT="ssh -p 29418 $GERRIT_USER@review.gerrithub.io" | ||
local SSH_GERRIT="ssh -p 29418 -i $GERRITHUB_KEY $GERRIT_USER@review.gerrithub.io" | ||
if [[ "$GERRIT_PUBLISH" == "true" ]]; then | ||
tee /proc/$$/fd/1 | $SSH_GERRIT "gerrit review --json --project ffilz/nfs-ganesha $REVISION" | ||
else | ||
|