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

svn server: how to manipulate existing revision

I have a svn server (VisualSVN Server Manager) On this server, we want to automatically obfuscate the incoming binary files. I wrote a post-commit.exe for this. I can see which files are affected with "svnlook" command. But the problem is that I…
Fatih
  • 945
  • 15
  • 26
0
votes
1 answer

Why are all my files marked for deletion by Git after I do "git stash pop -q"?

I'm trying to implement the Git hook code in the following thread (last post): Git: How to re-stage the staged files in a pre-commit hook . I place the following code in my post-commit hook git stash pop -q and after it has been executed, all my…
arnold_w
  • 59
  • 9
0
votes
1 answer

Subversion post commit hook for Jenkins

I just spent a day wading through a decade's worth of SO questions, forum posts and the Jenkins Subversion Plugin wiki and documentation. The question I was trying to answer: What is the current minimal setup required to trigger jobs by Subversion…
Reto Höhener
  • 5,419
  • 4
  • 39
  • 79
0
votes
1 answer

Jenkins trigger build URLs

When I configure the job in Jenkins I see the following build trigger URL example: JENKINS_URL/job/pipeline/build?token=TOKEN_NAME However, I see a different URL on the Subversion plug-in's…
bahrep
  • 29,961
  • 12
  • 103
  • 150
0
votes
1 answer

Adding multiple svn repositories to trac 0.12

We are running trac 0.12. From what I have read it should be possible to add more than one svn repository to trac starting with this version. Does this mean I can connect multiple repositories to the same trac environment even? Assuming I have a…
Tobbes
  • 41
  • 11
0
votes
0 answers

vim error `.git/hooks/post-commit.sample/post-commit" E212: Can't open file for writing`

In the .git/hooks folder I need to make a post-commit.sample folder and add a post-commit file to it (and edit a line into it). There was no post-commit file or post-commit.sample folder so I used mkdir and touch to create the file. But when I…
picasso13
  • 11
  • 1
  • 5
0
votes
1 answer

How to find file name exist in svn committed directory list

I want to trigger the jenkins build in post-commit hook.if file is committed on directory "SOURCE/databasescript" and file name is "update.sql". post-commit set "REPOS=%~1" set "TXN=%~3" set "REV=%~2" echo "repos %REPOS%." >> C:\test.log echo "REV…
Sameek Mishra
  • 9,174
  • 31
  • 92
  • 118
0
votes
1 answer

PostCommit Hooks in Jenkins / SVN

I'm looking to implement post commit hooks in an SVN / Jenkins env (win), and it's something that I've never needed to do before. I've searched the site and further afield to try and further my understanding of how it works and I'm struggling a…
dazednconfused
  • 141
  • 1
  • 5
  • 16
0
votes
1 answer

How to set post-commit script in SVN to update modified files?

I deleted post-commit.tmpl, and in post-commit file, here is the code: #!/bin/sh export LANG=en_US.UTF-8 SVN_Path=/root/svn/myblog WEB_Path=/home/app/myblog echo `date "+%Y-%m-%d %H:%M:%S"` $SVN_Path update --username xxx --password yyy…
Henry Yong
  • 97
  • 11
0
votes
1 answer

SVN Post-commit hook: error 255 when parameterizing email address using SET command

We use the SVN Post-Commit hook to send email notifications when SVN revisions have been submitted to the repository. I am attempting to create email distribution lists so SVN users can pick which emails are sent to them based on the URL for the…
0
votes
0 answers

SVN Post-Commit Hook Script to get the exact commited path

I need a SVN Post-Commit hook script to run a vbs script only if the changes happened in particular path. below is the repository folder structure, -Virtualize +trunk +branch …
Jambnad
  • 1
  • 3
0
votes
0 answers

Add git commit message to modified file for in-file history

Our customer insists of having a file history as comments at the top of the file, even though we use git for version control. As a lazy developer (and having serious concerns about the usefulness of in-file histories compared to Version Control…
Jens
  • 9,058
  • 2
  • 26
  • 43
0
votes
1 answer

How can I implement Pre- and Post-Commit Hooks in Riak?

There is but scant information on the web as to how to actually implement these features of Riak besides this blog post and a few others. Are any client libraries (ripple etc.) capable of receiving messages via the hook so that working with the…
dirkb
  • 403
  • 3
  • 6
0
votes
0 answers

SVN Post-Commit exe failed to start

I've created a VB.Net exe which pulls information from my teams SVN Repository in order to post that information on a channel on our slack page. I've named the exe post-commit.exe and placed it in the hooks folder within our SVN repository (which…
Andrew Ferguson
  • 179
  • 1
  • 3
  • 15
0
votes
1 answer

Subversion: How to rerun post-commit scripts for all revisions?

We have installed an integration of our SVN repository with a bug tracker. The bug tracker is called from the post-commit hook to get information about the tickets closed in a commit. Since we have been using the bug tracker for a lot of commits, we…
Christopher Oezbek
  • 23,994
  • 6
  • 61
  • 85
1 2 3
8 9