I might use Groovy for this.  Install the Groovy 
Plugin<https://wiki.jenkins-ci.org/display/JENKINS/Groovy+plugin>and write a 
Groovy script that calls commands to update the git/hg repos 
and which can then parse some command output to get the hashes.  Once you 
have the hashes in Groovy variables, you can then trigger whatever jobs you 
want and pass those hashes as variables.  There's an example of the Groovy 
Plugin wiki about how to trigger a job and passing it a parameter.

The Multiple SCMs 
Plugin<https://wiki.jenkins-ci.org/display/JENKINS/Multiple+SCMs+Plugin>might 
be an alternative way to do what you want.

On Saturday, June 29, 2013 11:19:26 AM UTC-5, John Cary wrote:
>
> I have a jenkins master that checks out an svn repo.  The svn repo 
> depends on external repos in git and hg.  When the master updates, 
> I would like it to update the git and hg repos and return their versions 
> (hashes), 
> so that I can have the slaves check out the git and hg repos to 
> the same version/hash. 
>
> Is there a way to do this? 
>
> Or a better approach to having mixed svn/git/hg in a build? 
>
> Thanks........JC 
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to