136
questions
0
votes
1
answer
34
views
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 ...
-1
votes
1
answer
138
views
Git command to retrieve contents of staged file?
Is it possible to retrieve the contents of a staged file in the current index using Git? The problem is that if I access the source on the disk I would get the unstaged changes returned with the blob.
...
0
votes
0
answers
107
views
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....
8
votes
1
answer
477
views
Why doesn't `git cherry-pick` (without `--no-commit`) run my post-commit hook?
How can I trigger a post-commit hook with the command git cherry-pick <commit>?
What I've tried:
I tried the command git commit -m '...' . It triggered the post-commit hook normally.
In the ...
0
votes
1
answer
471
views
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 ...
2
votes
1
answer
486
views
Bash script won't exit on input command
I have a bash script that runs on git post-commit hook. What it does is asking the user for an input and based on input it will trigger another action and exits.
The problem is that it will not exit ...
0
votes
1
answer
57
views
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 ...
1
vote
1
answer
51
views
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 ...
0
votes
1
answer
103
views
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 ...
1
vote
1
answer
1k
views
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 ...
0
votes
1
answer
643
views
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 ...
0
votes
1
answer
3k
views
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 page:
...
1
vote
1
answer
1k
views
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 ...
1
vote
0
answers
122
views
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/...
1
vote
2
answers
189
views
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?
3
votes
2
answers
451
views
Is there a way to queue a VSTS build with SVN post commit hook?
Is there a way to trigger/queue a build on VSTS using an SVN post-commit-hook? Our svn repository is behind a firewall so isn't visible to VSTS for the built in polling it offers. But I want to be ...
0
votes
1
answer
134
views
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 ...
0
votes
0
answers
330
views
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 ...
0
votes
1
answer
287
views
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=%~...
1
vote
0
answers
551
views
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 ...
1
vote
1
answer
238
views
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:...
1
vote
1
answer
190
views
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
vote
0
answers
315
views
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 ...
14
votes
5
answers
607
views
For every commit, create an equivalent compiled commit in a separate repo or branch
I'm building sites using Jekyll, which compiles ERB, SASS, &c. into plain HTML & CSS.
After most commits, I'd like to compile the site and commit the compiled version in a separate repository ...
-1
votes
1
answer
629
views
Send email in the background in SVN post-commit
I'm trying to send an email to a member of our testing team when a specific file is committed to our SVN repository. I've got the post-commit hook working properly using sendmail with all the proper ...
0
votes
1
answer
1k
views
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 ...
0
votes
1
answer
958
views
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"`
$...
0
votes
1
answer
187
views
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 ...
0
votes
0
answers
491
views
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
...
0
votes
0
answers
109
views
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 ...
0
votes
0
answers
210
views
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 ...
-1
votes
1
answer
3k
views
Tortoise SVN Post-Commit Hook Windows
I'm working on a simple slack integration for SVN projects via a client side post-commit hook in Windows Tortoise SVN using curl to send JSON. I would like to post some basic information, ideally ...
0
votes
1
answer
105
views
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 ...
34
votes
3
answers
48k
views
Are there any good workarounds to the GitHub 100MB file size limit for text files?
I have a 190 MB plain text file that I want to track on github.
The text file is a pronounciation lexicon file for our text-to-speech engine. We regularly add and modify lines in the text files, and ...
0
votes
0
answers
270
views
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 ...
0
votes
1
answer
366
views
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 ...
1
vote
0
answers
126
views
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 ...
0
votes
1
answer
1k
views
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, ...
1
vote
1
answer
2k
views
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 ...
0
votes
1
answer
287
views
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
98
views
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" >> /...
6
votes
2
answers
2k
views
Why is a Git post-commit hook on non-interactive rebase not run?
Given an arbitrary, executable Git post-commit hook it is not run during a non-interactive rebase, neither with rebase --force-rebase nor with rebase --no-ff which is a synonym for the former in non-...
0
votes
1
answer
972
views
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 ...
1
vote
2
answers
2k
views
How to print arguments in SVN hook
I am using windows7 and VisualSVN Server.
I have wrote simple SVN post-commit hook which looks like
C:\Perl64\bin\perl C:\repositories\secret-project\hooks\myhook.pl %1 %2
and myhook.pl script looks ...
3
votes
1
answer
186
views
dealing with riak datatypes in postcommit hooks
I am wanting to implement a postcommit hook for riak that decrements a counter in a map in another bucket. However I am having a bit of trouble dealing with the riak datatypes.
Here is me attempting ...
1
vote
1
answer
515
views
VisualSVN server can't recognize Perl in post-commit hook
I have installed and set up the VisualSVN Server v3.2.2 on my local machine (Windows 7 Professional - 64bit) and I wrote post-commit hook in Perl which basically should send one HTTP POST request to ...
3
votes
1
answer
619
views
Can I trigger a git hook after a commit from Gitlab web editor?
I use git, specially in conjunction with Gitlab (7.7.1 + shell 2.4.1), to wire together a bunch of parts of my development workflow. The post important part of this is the post-receive hooks that ...
0
votes
0
answers
144
views
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 ...
3
votes
1
answer
338
views
Universal Post Commit Git Hook
I was wondering if there was a simple way to set up a post commit git hook so that it would run regardless of the repo that it is run with (It is my understanding that the applied hook comes from a ...
0
votes
1
answer
2k
views
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 ...