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
1
vote
2 answers

How to print arguments in SVN hook

I am using windows7 and VisualSVN Server. I have wrote simple SVN post-commit hook which looks like C:\Perl64\bin\perl C:\repositories\secret-project\hooks\myhook.pl %1 %2 and myhook.pl script looks like $svnlook = '"C:\Program Files\VisualSVN…
Darko Rodic
  • 1,010
  • 3
  • 10
  • 27
1
vote
1 answer

VisualSVN server can't recognize Perl in post-commit hook

I have installed and set up the VisualSVN Server v3.2.2 on my local machine (Windows 7 Professional - 64bit) and I wrote post-commit hook in Perl which basically should send one HTTP POST request to some server every time something was commited. I…
Darko Rodic
  • 1,010
  • 3
  • 10
  • 27
1
vote
0 answers

Execute NodeJS application on SVN hook

How do I execute a NodeJS application on SVN post-commit hook at VisualSVN? Can anyone provide a basic example?
Diogo Cardoso
  • 21,637
  • 26
  • 100
  • 138
1
vote
1 answer

Unable to trigger jenkins job upon svn post-commit hook

I am trying to trigger a jenkins job upon svn post-commit hook. But, I am getting below errors: my jenkins is in windows at ###.###.1.7:8080 job is at : //###.###.1.7:8080/job/hooks_test/ I have also configured SCM POLL for every 2 mins. ERROR…
Samuel G
  • 11
  • 2
1
vote
1 answer

why in the console of hook/commit in tortoise we can see only errors?

I created a post-commit hook which inform the user of some others information. I put in my code: REPOS="$1" REV="$2" TXN_NAME="$3" SVNSYNC='/opt/collabnet/csvn/bin/svnsync'; echo "my message" >&0; echo "Your commit has been performed successfully."…
Hatim
  • 1,116
  • 1
  • 8
  • 14
1
vote
0 answers

How to get %BUGID% in post-commit hook script?

I want to set up Mantis bug tracker and tortoise svn to work together. I have added properties to tortoise svn like below: And also I have added below properties to config_inc.php file $g_source_control_notes_view_status =…
Foolish
  • 3,952
  • 33
  • 46
1
vote
1 answer

Commit Git "Supermodule" using post-commit hook of submodule with grunt-git and grunt-githooks

I have a git repo which contains many submodules. When I commit in a submodule, I have a git hook which is supposed to commit in the "supermodule". Unfortunately, the commit in the post-commit hook fails because the "supermodule" can't seem to…
apatrick
  • 194
  • 2
  • 14
1
vote
1 answer

Svn Commit hangs for an infinite time.How to resolve this issue

I performed following steps to implement the process of automatic mirroring in svn (relaying master commits to slave): Firstly I ran svnsync init command to initialize the both master and slave repositories Now I created post-commit.bat and…
Alok
  • 929
  • 10
  • 26
1
vote
1 answer

postcommit.bat script hook in SVN tortoise

I have the following postcommit hook that executes when a commit is done: PostCommit.bat @ECHO OFF set local set REPOS=%1 set REV=%2 set TXN_NAME=%3 SET ThisScriptsDirectory=%~dp0 SET…
1
vote
2 answers

Post-commit hook not executing

The problem I am using SVN for revision control. I would like to use the post-commit hook in order to get a script executed, but for some reason it does not trigger. Any ideas what might be the reason? Additional information My server is a…
Avi Turner
  • 10,234
  • 7
  • 48
  • 75
1
vote
1 answer

VisualSVN Server Post commit hook a specific path

How to do a post commit hook checkout a particular svn path checked in. Right now I am only able to checkout when any file in the repository path is committed. But how to add filter to check only the particular path(/Mobile/Node/trunk) in the…
Sweety Bertilla
  • 972
  • 10
  • 35
1
vote
1 answer

Python Subprocess.Popen not getting exit, it getting hanged

I'm using subprocess.Popen to invoke the console application. The console application itself calling another child process to perform download operation. The parent process exits once its invoke the child process. I'm able to get the output of the…
user1553605
  • 1,333
  • 5
  • 24
  • 42
1
vote
1 answer

SVN post-commit missed $REPOS and $REV

I've a problem with my SVN post-commit hook. The hook itself works fine. I've added: echo "REPOS: $REPOS Rev: $REV" >>/tmp/mylog.txt .. and when I'm running it by using the shell as www-data all works fine and the output is: REPOS:…
coding.ms
  • 91
  • 5
1
vote
3 answers

Post Commit Hook - Jenkins: Starting jobs after Jenkins downtime

We have implemented a Post Commit Hook which starts our jobs on Jenkins. Our inspiration is this: Trouble with SVN post-commit and Jenkins It works as intented and we have set polling for each job to blank as Yossi described. My question is now:…
clausfod
  • 315
  • 1
  • 3
  • 7
1
vote
1 answer

How do I loop through changes in a Subversion post-commit hook?

I've been working on a post-commit hook for my Subversion repository which will update a particular working copy on my live server when other working copies are committed. I have it working when I run the update command on the entire working copy,…
Carl
  • 1,246
  • 3
  • 21
  • 39
1 2 3
8 9