Questions tagged [post-commit]

205 questions
1
vote
2 answers

Having trouble with post-commit hook

I am following this tutorial that is like the hello world for post-commit I am using Ubuntu 10.04. I installed svnnotify and ran $ which svnnotify which output: /usr/bin/svnnotify so I changed the path in the turorial from…
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422
1
vote
1 answer

python error while executing post-commit script from console

#sh post-commit I am getting bellow error, How to fix this. sh post-commit Traceback (most recent call last): File "/SVNData/testrepo/hooks/mailer.py", line 1353, in sys.argv[3:3+expected_args]) File…
1
vote
0 answers

Post Commit Hook with Email Notification Error SVN

I am configuring my SVN server to send an email when some one commit code to the repository. After some googling I am using bellow codes for post-commit. I would like to use gmail SMTP as a mail server. But I am ending up with error.. "post-commit…
1
vote
1 answer

Editing Subversion post-commit script to enable automated Hudson builds

Hey guys, I'm not so good with Linux, but I need to modify the post-commit file of my Subversion repository to get Hudson to build automatically on commits. This page here tells me to do this: REPOS="$1" REV="$2" UUID=`svnlook uuid…
Wachgellen
  • 11
  • 2
1
vote
1 answer

Error message 'database is locked' with Subversion server accessing repository through SMB

I created a Subversion server using a NAS and a Raspberry Pi. The Pi runs the server, and has an SMB share from the NAS mounted, on which the repository is stored. (A setup without using both devices is not an option as the NAS has no option to…
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

SVN post commit stucks while starting process

I've built a script in VS that receives the 2 arguments sent by post-commit hook. The script runs SVN LOG to retrieve data about the revision (author, date, files). When I run the solution from VS with constant vars for the arguments, it runs…
Oded
  • 795
  • 2
  • 12
  • 32
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

svn post-commit hook on windows server

i'm trying to set up a svn post-commit hook on a windows server, so that every time a commit is made, it is connected to an issue of an existing project on my bug tracking website. since there is no pre made post-commit hook for windows (or at…
c7n
  • 1,131
  • 16
  • 29
1
vote
1 answer

ruby script not being called successfully with svn's post commit hook script

what could be the possible reason that my ruby script is not being called successfully? note that when i manually execute the post-commit script like so: /var/svn/eweds/hooks/post-commit /var/svn/eweds 151 works just fine, the way my ruby sript is…
David
  • 4,235
  • 12
  • 44
  • 52
1
vote
0 answers

Redirect output for SVN post-commit hook

Whenever I execute my subversion post-commit hook it runs successfully but I don't get any output to the console. My post commit hook calls another script and the other script provides important user feedback. I tried redirecting this way but it…
nullByteMe
  • 6,141
  • 13
  • 62
  • 99
1
vote
1 answer

VisualSVN checkout doesn't work

I wanted to checkout when there is a commit to a particular path in svn. In VisualSVN -> Properties -> Post-Commit hook: "D:\Program Files\VisualSVN Server\bin\svn.exe" checkout https://***.****.***/svn/Mobile/Node/trunk C:\MyPath Then I went and…
Sweety Bertilla
  • 972
  • 10
  • 35
1
vote
1 answer

SVN post-commit works only manually

HI, I've created a batch file called post-commit.bat and placed it under the /hooks directory. The content of the file is: TestCS.exe The content of the exe file is: static void Main(string[] args) { try { // create…
Oded
  • 795
  • 2
  • 12
  • 32