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

SVN post-commit script

I have this in my file called post-commit.sh in my hooks folder: /usr/bin/svn update /var/www --username XXXXX --password XXXXX now if I run: bash post-commit.sh everything works, but if I do a commit from my pc then it doesn't work. I've added…
James
  • 373
  • 4
  • 14
1
vote
1 answer

Batch script to search for a particular string in SVN revision file

I need some help with windows batch script What am i trying to achieve: retrieve the youngest (last) revision from repository search for a particular string in that file if string exists, load a web page What i have tried: set REVNO=$(svnlook…
Boris Mocialov
  • 3,439
  • 2
  • 28
  • 55
1
vote
1 answer

VisualSVN post-commit hook failed

I try to add a post-commit hook to my VisualSVN Server. After a commit i need to checkout the whole project. I do the following in the commit-hook: "%VISUALSVN_SERVER%bin\svn.exe" checkout http://Server.local.myServer:82/svn/Project/…
1
vote
1 answer

Post commit update returns "Skipped '.'" with non-serveradmin user

I have a post-commit hook that cds into my website's directory and runs svn update. For my serveradmin, it works correctly. For other users, the commit works and the hook executes, but the update returns "Skipped '.'" to the log file. Here's as much…
1
vote
1 answer

Can I trigger the post-commit.bat when a specified path commited?

Currently, the hook scripts is under the repos/hooks,however,there are several projects in the same repository,if any of project is commited, the post-commit hook will be triggered. Now,if I want to trigger the post-commit hook only one of the…
Tracy Theron
  • 343
  • 1
  • 6
  • 15
1
vote
0 answers

Why does this Subversion post commit hook fail to run? (permissions issue)

I have a python script being called by an svn post commit hook, and this python script needs to write to a log file using python logging. But the attempt to open the log file causes the script to fail. I am certain this is the reason because if I…
John B
  • 3,391
  • 5
  • 33
  • 29
1
vote
2 answers

Automatic database population on every svn commit

I want to write the post commit hook to update the databases automatically on every svn commit..... and also I want to know any other way to perform the same task rather than post commit hook? Thanks Naveen.
Naveen
  • 117
  • 2
  • 11
1
vote
1 answer

SVN post-commit hook which update changelog.txt in Windows OS

I'am new to SVN, and I can't find a solution to make "after commit" update a specific txt file. I have a php project, within changelog.txt inside the root folder (at the same level where index.php is located). What I want is that after each svn…
aspirinemaga
  • 3,753
  • 10
  • 52
  • 95
0
votes
1 answer

how to synchronize between a server svn and site in production

I wonder how I can add the synchronization between a server and svn production site in the same server I administer the areas under plesk panel now the svn server when you walk but I am a developer commits a file will be place in the folder…
0
votes
0 answers

SVN post commit hook - How to identify subdirectory in which the commit has happened?

I am one repo in which there are couple sub-folder's in it ,So when I commit any changes to sub-directory I need to trigger one URL. When I configured the above case in the post-commit hook file ,The URL was triggering even the commit was done…
0
votes
1 answer

Fail to run git command in specific directory in global post-commit hook

I am trying to use a submodule with a global post-commit hook but find an issue. Description Consider we have two git directories A and B. A is the super-project of B. Here's my script in the global post-commit hook. #!/bin/sh git -C path/to/A…
HenryHe
  • 21
  • 5
0
votes
0 answers

Jenkins Job failed for 'mlDeployApp' task due to .svn folder

I am new to Jenkins and set up a job in free style project to fetch dhf project from a svn repository for each commit. I have used Jenkins svn post-commit hook as mentioned here - https://plugins.jenkins.io/subversion/ (Windows specific post-commit…
Ketan
  • 11
  • 1
0
votes
1 answer

Post commit hook problem for

I want to update the files which were changed as my SVN size is 20GB. My SVN Repo is located at: /media/disk3/velsvn/projects My Checkout Folder is at: /media/disk2/www/htdocs (Reference: Using SVN post-commit hook to update only files that…
Nitin Srivastava
  • 480
  • 1
  • 7
  • 19
0
votes
1 answer

gitlab commit thread created automatically on a condition

So I'm looking for a solution to such a case: a file with a specific name pattern (say AB_123.sql) is commited to the repository. If the filename differs from the mentioned pattern I'd need a thread to be created. I can cope with the regexp but I'd…
0
votes
1 answer

Subversion post-commit failing!

I have just got subversion up running, but my post-commit.tmpl is failing. I want to update my live directory at every trunk commit, so i always can see the new working code. Although this seems to work when i lunch the update by ssh, but not in the…
JavaCake
  • 4,075
  • 14
  • 62
  • 125
1 2 3
8 9