That's not the typical way to execute some commands on the current version of 
files from a git repo in Jenkins.

Typically, you'd install the "Git Plugin", then configure a job to use the Git 
plugin.  In the Git plugin configuration section of that job, you'll list the 
Git repository location and the branch or branches to be monitored.  For your 
initial projects, you'll probably configure the plugin to poll the Git 
repository.

As you get more and more jobs, you'll probably eventually switch from polling 
the git repository to using a commit hook.  Both techniques work, and they do 
very well.

Mark Waite



>________________________________
> From: Srinivasa TN <seen...@gmail.com>
>To: jenkinsci-users@googlegroups.com 
>Sent: Thursday, July 4, 2013 6:48 AM
>Subject: Refer a particular version of file in git repo
> 
>
>
>Hi All,
>   I am using jenkins 1.514 on Ubuntu 12.10 with git as scm.  As part of my 
>build plan, I want to execute some commands on the current version of those 
>files in the git repo.  For this I did an execute shell where I have the 
>following commands
>
>
>git checkout master
>git merge origin/master
><my executable>
>
>
>Is it the right way to do it?
>
>Regards,
>Seenu.
-- 
>You received this message because you are subscribed to the Google Groups 
>"Jenkins Users" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to jenkinsci-users+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to