Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SERVER=https://buildserver-url
- USER=buildserver-user
- PASS="<password>"
- LOCATOR=$1
- # The following is one-line:
- (sleep 10; curl --user $USER:$PASS -X POST "$SERVER/app/rest/vcs-root-instances/commitHookNotification?locator=$LOCATOR" -o /dev/null) >/dev/null 2>&1 <&1 &
- exit 0
- set SERVER=https://buildserver-url
- set USER=buildserver
- set PASS=password
- LOCATOR=%1%
- (timeout 10; curl --user %USER%:%PASS% -X POST "%SERVER%/app/rest/vcs-root-instances/commitHookNotification?locator=%LOCATOR%" -o /dev/null) >/dev/null 2>%1% <%1% &
- exit 0
- "The system cannot find the path specified"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement