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
0 answers

In SVN Post-Commit hook script, why we need to use mailer.py instead of commit-email.pl?

I read in some answer threads that commit-email.pl is deprecated and we need to use mailer.py. Could you please explain why? What kinda issue will arise if I use commit-email.pl? Is there any advantage of using mailer.py?
esyana
  • 57
  • 9
0
votes
1 answer

python post-commit script parsing an xml file and send an email if an xml-tag is available

I'm a newbie in Python. I would like create a python script which checks(maybe parsing) every commited xml-file for the availablity of a special tag (e.g. status="Needs Review"). If the xml-file consists of this tag then send an email with a link to…
M. Addam
  • 11
  • 1
0
votes
1 answer

Create Jenkins jobs automatically from SVN post-commit hook

What I need is a SVN post-commit hook that must be able to create (not to just trigger the run) its own Jenkins Job (if the revision ID is 0), and it has to be executed on multiple project. Basically, each project must be able, using this hook, to…
RVKS
  • 147
  • 3
  • 16
0
votes
1 answer

how to get latest commit ref on giblit post commit hook

I am trying to get branch name of the last commit pushed to git that triggered my post-commit groovy script, anybody has an idea that how can I do this??
0
votes
0 answers

Post Commit Hook isnt getting triggered

This is my post-commit hook in vm01 repository 'repos': #!/bin/sh #/var/www/svn/repos/hooks/post-commit # Include the below line for each slave in the environment echo "Im gettting called" >> /var/log/httpd/svnsynclog /usr/bin/svnsync sync…
0
votes
1 answer

svnlook changed -t "$rev" "$repos" not getting executed

As in title I am calling from my post-commit hook script written in perl which has command $msg = `$svnlook changed -t "$rev" "$repos"`; which should execute and than I should send $msg to my service. But when I run if ( length($msg) == 0 ) { …
Darko Rodic
  • 1,010
  • 3
  • 10
  • 27
0
votes
0 answers

create a mirror backup of subversion repository

I want to create a mirror backup of subversion repository. For that I've followed the guide on using svnsync to create a mirror backup of subversion repository. I've successfully created the mirror backup of subversion repository. However when I…
Gangadhar Jannu
  • 4,136
  • 6
  • 29
  • 49
0
votes
1 answer

Is there a way to trigger a Jenkins build after publishing an npm package to Sonatype Nexus?

Is there a way to trigger a Jenkins build after publishing an npm package to Sonatype Nexus? I've been clicking through Sonetype's docs for Nexus and exploring my Nexus admin console. I've also tried searching for some plugins but I'm not sure if…
Resist Design
  • 4,462
  • 3
  • 22
  • 35
0
votes
0 answers

Having trouble using Git hooks with Sublime Text 3?

I added a post-commit git hook with Sublime Text 3, with the following text in it: #!/bin/sh git push -u origin master What's odd is that committing from Git Bash's command line successfully pushes the project, but when I try to do the same using…
Alex
  • 3
  • 4
0
votes
0 answers

VisualSVN postcommit hook

On my windows server machine I would like to execute a post commit hook svn update. If i execute it on my server trough cmd it works but if I insert command into svnserver I get an error after committing from my local machine. Error is: use cleanup…
Yebach
  • 1,661
  • 8
  • 31
  • 58
0
votes
1 answer

svn post-commit script runs from command line, but not when commiting file(s) to svn

I have a post-commit hook in svn that runs fine from the command line when I run env - ./foo.sh /path/to/svn/repos/ 12345 but when the script is called from svn it does not appear to work. What I am basically doing is checking the committed files…
funkadelic
  • 183
  • 3
  • 14
0
votes
1 answer

Jenkins Subversion post-commit hook with authentication - anonymous job read still required?

We are using Subversion 1.8.8 and Jenkins 1.509.4 (with the Subversion v2.3 plugin) for our many project builds. Company policy requires authentication, so within Jenkins we are using LDAP security realm, and project-based security matrix for user…
OrionRogue
  • 398
  • 4
  • 14
0
votes
1 answer

Differentiate between a move, rename and a normal add/delete operation in post-commit hook

I need to configure a post-commit hook that will identify a rename operation as Rename in the email. The concern is that we are able to identify them as a Delete & Add operation, but we need to put it up as a single Rename operation. Same is true…
0
votes
1 answer

Trigger compass compile on git pull execution on server

Part of my employer's practices is to avoid including css files in project repositories. Due to past issues with merge conflicts centering around CSS, its been decided to push SASS file changes only, and re-compile the stylesheets as necessary. We…
Jason
  • 11,263
  • 21
  • 87
  • 181
0
votes
1 answer

SVNLOOK changed in postcommit hook - batch file

I am having trouble printing the list of changes. Everytime I run my script and check the value, it is blank. postcommithook.bat set REPOS=%1 set REV=%2 set TXN_NAME=%3 set LF = ^ SET ThisScriptsDirectory=%~dp0 set svnlook = "C:\Program…
Venkat Raman
  • 103
  • 14
1 2 3
8
9