Questions tagged [post-commit-hook]

In the context of Software Configuration Management (SCM), a post-commit hook is a command run just after a commit is performed.

The usual use of post-commit hooks is to send emails about the commit, nofify others tools (bugtrackers, continuous integration systems) or trigger a website publication or a backup process.

Related tags

  • Tag may be used in combination with this tag for git specific pre-commit hooks
  • Tag may be used in combination with this tag for SVN specific pre-commit hooks
135 questions
0
votes
1 answer

HowTo Start a Jenkins build by Subversion post-commit hook? (localhost, in Windows)

I have Jenkins and Subversion installed on my Windows 7 localhost. They work fine independently. I have the Subversion Plugin for Jenkins installed. From this page…
Bear. Teddy Bear.
  • 139
  • 1
  • 2
  • 12
0
votes
2 answers

How to add the commit comment to a Subversion post-commit hook

I have a working Subversion Post Commit working OK - how do I add in the comments made by the user performing the commit? My code is REPOS="$1" REV="$2" AUTHOR="$(svnlook author -r $REV $REPOS)" mailer.py commit "$REPOS" "$REV"…
benb3342
  • 13
  • 4
0
votes
1 answer

How to find the hook in https svn server

I am not able to access my https svn server using my local post commit hook. How to find the hook path in the https svn server https://**/svn/myProject/trunk
Sweety Bertilla
  • 972
  • 10
  • 35
0
votes
1 answer

SVN Commit Merge Error when using post-commit hook

I have been reading some of the other similar questions people have asked with the post-commit hook. But have not found one which is close enough to my issues that it provides an answer :(. I have an SVN repository which I am able to checkout, and…
Danoweb
  • 208
  • 1
  • 2
  • 9
0
votes
1 answer

Tortoise SVN - post-commit hook failed (exit code 1) with no output

I'm using TortoiseSVN 1.8.1, Build 24570 and trying to commit files to remote repository. But It doesn't work because I'm receiving the message Completed: At revision: 5641 Error: post-commit hook failed (exit code 1) with no output. The…
vlcik
  • 911
  • 4
  • 20
  • 33
0
votes
2 answers

SVN post commit hook won't execute telnet

I have a SVN repo served by Apache over DAV. I've created a post-commit hook that I want to open a telnet session to a server. When I execute the commands from the command prompt, it works fine. But when I execute it with the hook, it fails, saying…
Eric
  • 1,023
  • 1
  • 15
  • 27
0
votes
1 answer

Git commit to MySQL using a post commit hook

I would like to take the contents of each file pushed to a git repo, and store the file contents in MySQL. A quick google and read says I need to hook into git using a post-commit hook. However, what does the actual post-commit hook look like to…
Justin
  • 42,716
  • 77
  • 201
  • 296
0
votes
0 answers

Is it possible to call a Java EE application (the ear) to be executed with a post commit hook (svn script)?

I need to call my Java EE application to be executed after the commit (in svn) so it can use some informations send from svn and other systems. Is it possible to write a post commit hook to call the ear of the app?
maher.belkh
  • 473
  • 2
  • 7
  • 21
0
votes
1 answer

Git Repo Auto-commit and Push

I have a scenario where I have a repo where users access the files directly, they don't know git exists, and make changes to what are essentially text files. I have that repo cloned. So when a commit is made, the changes are pushed to the cloned…
awolfe76
  • 215
  • 5
  • 13
0
votes
1 answer

Running a git post-commit hook

I'm running MAMP locally. I have a php script that I use to build a web site, to generate static HTML files, that I then push to a web server. This process acts a lot like Jekyll on github pages. For now, I simply make changes to Markdown files (my…
awolfe76
  • 215
  • 5
  • 13
0
votes
1 answer

svn post-commit hook first timer

I found my repo files and have started editing my post-commit.tmpl. Here is what is in there now: REPOS="$1" REV="$2" #"$REPOS"/hooks/mailer.py commit "$REPOS" $REV "$REPOS"/mailer.conf cd /var/www/domains/mywebsite.com svnlook dirs-changed $REPOS…
Jacksonkr
  • 31,583
  • 39
  • 180
  • 284
-1
votes
1 answer

Git command to retrieve contents of staged file?

Is it possible to retrieve the contents of a staged file in the current index using Git? The problem is that if I access the source on the disk I would get the unstaged changes returned with the blob. I am trying to create a git pre-commit hook to…
tim
  • 2,530
  • 3
  • 26
  • 45
-1
votes
1 answer

Send email in the background in SVN post-commit

I'm trying to send an email to a member of our testing team when a specific file is committed to our SVN repository. I've got the post-commit hook working properly using sendmail with all the proper contents, but the problem is that running the…
Brandon
  • 4,491
  • 6
  • 38
  • 59
-1
votes
1 answer

Tortoise SVN Post-Commit Hook Windows

I'm working on a simple slack integration for SVN projects via a client side post-commit hook in Windows Tortoise SVN using curl to send JSON. I would like to post some basic information, ideally revision number and comment when a commit is made. I…
edencorbin
  • 2,569
  • 5
  • 29
  • 44
-1
votes
1 answer

How to create a SVN Hook post-commit on a Plesk 11 Server for a svn+ssh tunnel user?

On my Plesk 11 Server i create an subdomain: sub.domain.tld For all the users i create a svn+ssh tunnel. All users committed through this tunnel. Now i want to create SVN Hook so that every commit should be directly update into sub.domain.tld I'm…
3logy
  • 2,634
  • 8
  • 46
  • 99
1 2 3
8
9