Advertisement
Guest User

Untitled

a guest
Dec 28th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. SERVER=https://buildserver-url
  2. USER=buildserver-user
  3. PASS="<password>"
  4.  
  5. LOCATOR=$1
  6.  
  7. # The following is one-line:
  8. (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 &
  9.  
  10. exit 0
  11.  
  12. set SERVER=https://buildserver-url
  13. set USER=buildserver
  14. set PASS=password
  15.  
  16. LOCATOR=%1%
  17.  
  18. (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% &
  19.  
  20. exit 0
  21.  
  22. "The system cannot find the path specified"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement