modified version of jenkins debian glue (https://github.com/mika/jenkins-debian-glue) for devuan
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
1.1 KiB

  1. #!/bin/sh
  2. #
  3. # POST-COMMIT HOOK
  4. #
  5. # The post-commit hook is invoked after a commit. Subversion runs
  6. # this hook by invoking a program (script, executable, binary, etc.)
  7. # named 'post-commit' (for which this file is a template) with the
  8. # following ordered arguments:
  9. #
  10. # [1] REPOS-PATH (the path to this repository)
  11. # [2] REV (the number of the revision just committed)
  12. #
  13. # The default working directory for the invocation is undefined, so
  14. # the program should set one explicitly if it cares.
  15. # You don't necessarily need /tmp/trigger_jenkins and /tmp/trigger_jenkins_stderr
  16. # but it turned out to be useful if you've to debug any issues...
  17. echo >> /tmp/trigger_jenkins /tmp/trigger_jenkins_stderr
  18. echo "Executing /usr/bin/trigger_jenkins $1 $2 [$(date) ]" >> /tmp/trigger_jenkins
  19. echo "Executing /usr/bin/trigger_jenkins $1 $2 [$(date) ]" >> /tmp/trigger_jenkins_stderr
  20. bash -x /usr/bin/trigger_jenkins "$1" "$2" >> /tmp/trigger_jenkins 2>>/tmp/trigger_jenkins_stderr
  21. echo >> /tmp/trigger_jenkins /tmp/trigger_jenkins_stderr
  22. # EOF
  23. # vim:foldmethod=marker ts=2 ft=sh ai expandtab sw=2