adapt jenkins notifications to gitolite repo structure (#67934)
This commit is contained in:
parent
b0d2c672c9
commit
1d46af5abd
|
@ -25,6 +25,6 @@ export GIT_CONFIG
|
|||
tee >($BINDIR/post-receive-notify-updates 1>&2) \
|
||||
| $BINDIR/post-receive-email 1>&2
|
||||
|
||||
export REPO_PATH=$(git rev-parse --show-toplevel)
|
||||
export REPO_PATH=$(pwd)
|
||||
export REPO_NAME=$(basename $REPO_PATH)
|
||||
$BINDIR/post-receive-notify-jenkins 1>&2
|
|
@ -2,7 +2,7 @@
|
|||
# Adapted from https://gist.github.com/vchatela/1cbca8f126b8ea8032ecd34b84164702
|
||||
set -eu
|
||||
|
||||
REPOSITORY_URL=git://repos.entrouvert.org/$REPO_NAME.git
|
||||
REPOSITORY_URL=git://repos.entrouvert.org/$REPO_NAME
|
||||
TRIGGER_URL=https://jenkins.entrouvert.org/git/notifyCommit?url=$REPOSITORY_URL
|
||||
|
||||
echo -n "Notifying Jenkins of changes to $REPOSITORY_URL..."
|
||||
|
|
Loading…
Reference in New Issue