Hi Mark,
   My git repo contains mvn repo files as well as some shell scripts which 
need to be executed during the build.

   For maven files, I am accessing git the way you have mentioned.  Now as 
part of the same build, I want to execute the shell scripts that are there 
in the git.  So, my question was how to refer to the latest version of the 
script files that are in the repo that jenkins has already cloned?

Regards,
Seenu.

On Thursday, 4 July 2013 19:03:38 UTC+5:30, Mark Waite wrote:
>
> 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 <see...@gmail.com <javascript:>>
> *To:* jenkins...@googlegroups.com <javascript:> 
> *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-use...@googlegroups.com <javascript:>.
> 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