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

SubversionNotify.exe slowing down subversion

When subversionnotify.exe is called from post-commit.bat it slows down all the process in subversion. For example creating a new folder in subversion takes 20-25 seconds which otherwise is created in 1-2 seconds. But when I remove this…
Tom
  • 11
  • 1
1
vote
1 answer

Why do I get an authentication error when checking if a branch exists in svn?

When someone commits I need to determine which project to add it to in our in house version controller. One of the factors is whether a certain branch has been created. I have the function: private static string SVN(string command) { …
Stefan
  • 3,669
  • 2
  • 32
  • 43
1
vote
2 answers

Why do I get this error: post-commit hook failed (exit code 255) with no output

I am getting the following error when I commit to a repository: post-commit hook failed (exit code 255) with no output. The post commit code is as follows: @echo off setlocal enableextensions set REPOS=%1 set REV=%2 set…
LeonardChallis
  • 7,759
  • 6
  • 45
  • 76
1
vote
1 answer

How to use SVN post-commit hook trigger jenkins build?

The main purpose is that I want to commit some files to SVN repository and trigger the jenkins to build some test automatically.The method I want to use is post-commit hook. I use TortoiseSVN , and I create a repository to test. I change the…
Henchi
  • 17
  • 5
1
vote
1 answer

post-commit hook : run the jenkins job based on project changed in git repository

I have configured individual jenkins jobs for each project. in my case, whenever there is a commit, all the jobs are getting triggered. how do I make sure only that job pertinent to the project runs and creates the deployable artifacts.
ramesh.metta
  • 139
  • 1
  • 1
  • 11
1
vote
0 answers

run a command in post commit hook when commit a specific path

I use VisualSVN Server and I want to trigger a build with Jenkins when a subfolder has been committed, but nothing happens. My svn server link is: https://jenkins:8433/svn/TestServer/MyApplication/app This is my code at post-commit: svnlook…
hieu anh
  • 11
  • 1
1
vote
2 answers

Don't execute SVN "post commit hook" when a specific file is committed

Is there any way to not to run "post commit hook" or skip "post commit hook statement" when a specific file is committed?
Raj Sharma
  • 91
  • 1
  • 10
1
vote
1 answer

Git Post Commit Hook Getting Commit Number

I am working on having my post-commit hook change a file to have the commit number, so that my application can use that in error handling. I was able to build the perl script to change the file, but I was wondering how to get the commit id from the…
Dave Long
  • 9,569
  • 14
  • 59
  • 89
1
vote
1 answer

How to find out in a post-commit-hook if the current revision is creating a branch/tag?

I want to write a post-commit hook that only triggers, if the current commit is creating a new tag. Tags are copied to a /tags/*new_tag_name*/ directory. My motivation is, if the commit is creating a new tag, the new tag should be checked out in my…
Thomas
  • 10,289
  • 13
  • 39
  • 55
1
vote
0 answers

Branch wise Post-Commit hook in svn

I have created CI using SVN(windows), Jenkins and Chef. One of my project currently gets polled in Jenkins from post-commit hook and code from Trunk gets uploaded to local server using Chef. Now we have UAT server on Azure and we need to upload…
1
vote
1 answer

In remote Visual SVN Server Post Commit Cook is not working properly,

In remote repo need to be auto updated but VISUAL SVN Server Post commit hook is not working Properly. This is my webhook code.. PATH=%PATH%;"C:\Program Files\VisualSVN Server\bin\" set SVN_WORK_DIR=C:\Svn\Test" svn update %SVN_WORK_DIR% It's…
1
vote
1 answer

Can you write out log messages to the TortoiseSVN Commit Finished dialog?

Can you write out log messages to the TortoiseSVN Commit Finished dialog? I know that you can output to the TortoiseSVN dialog in C# using Console.Error.WriteLine("error message"); Environment.Exit(1); but I cannot find the the way to just output…
ryanbmg
  • 23
  • 3
1
vote
0 answers

Jenkins parameterized build and Subversion post-commit hook

I have a parameterized job so user can select the specific revision to build. The job’s Repository URL includes the revision build param like this: http://svn/app/trunk/@${revision} This works fine when running the build manually. But…
T. Osborn
  • 31
  • 3
1
vote
0 answers

How to trigger nightwatch.js on GitHub commit?

I want to run e2e regression tests when my developer colleagues commit their code to GitHub. I simply cannot find a place at nightwatch.js documentation or at GitHub documentation where this scenario is described. Any Ideas where to look at? Got a…
TLR65
  • 11
  • 3
1
vote
1 answer

Git Post-Commit Hook

Git newbie here. I want a post commit hook that when run will copy the latest code from the repository to a different server in a new folder. The folder name should be what I wrote in the git commit comment. Is this possible?
1 2 3
8 9