You could try the following steps for each of the Jenkins jobs you want to
build:


   1. Define a new freestyle job
   2. Define the SCM as git, with the git URL and the "Branches to build"
   entered there
   3. Add a build step "Invoke top-level maven targets" and enter the maven
   goals to execute
   4. Press the "Advanced" button in the maven build step and enter the
   location of the pom file
   5. Save the job configuration
   6. Press the "Build now" link

That should build your job.  More information on the git plugin is
available from:

https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin

Mark Waite



On Thu, Jul 10, 2014 at 3:53 AM, sai ram <sairam...@gmail.com> wrote:

> ​I have a Git repository that contains several project with same root
> directory with the following structure,
>
> +-repo
>
>  +--Root folder
>
>     +--- projectA
>        +--- pom.xml
>
>     +--- projectB
>        +--- pom.xml
>
> I want to built independent jenkins jobs. I need to know what is the
> location that I need to give in the branch specifier or in the maven build
> path.
>
> I get an error - The goal you specified requires a project to execute but
> there is no POM in this directory
>
> Thanks,
> Sairam​
>
>  --
> 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/d/optout.
>



-- 
Thanks!
Mark Waite

-- 
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/d/optout.

Reply via email to