Jenkins question


Luis Gomez <luis.gomez@...>
 

Hi team,

 

I have a question regarding Jenkins setup: if I create a branch in our git repo for new test code (Python or Robot) stored under “testcode” folder or I create a branch in our git repo for new distribution code (Maven) stored under “distributions” folder. Would it be possible to configure different jobs for these different branches? i.e. instead of triggering on project, trigger on folders.

 

Thanks/Luis

 


Andrew Grimberg
 

On Tue, 2013-11-05 at 19:19 +0000, Luis Gomez wrote:

I have a question regarding Jenkins setup: if I create a branch in our
git repo for new test code (Python or Robot) stored under "testcode"
folder or I create a branch in our git repo for new distribution code
(Maven) stored under "distributions" folder. Would it be possible to
configure different jobs for these different branches? i.e. instead of
triggering on project, trigger on folders.
What jenkins builds is completely dependent up where it's pointing from
the git branch options as well as the gerrit path triggers.

So, yes, it's feasible to have different jobs for different branches or
even portions of branches.

-Andy-

--
Andrew J Grimberg
Systems Administrator
The Linux Foundation


Luis Gomez <luis.gomez@...>
 

Thanks Andy for your quick answer.

The question comes because we have different stuff in our git repo :

/distributions: this is what Ed created to build the controller release vehicles
/packaging: this was created to build linux packages such as rpm
/testcode: this will be created to store test code

Very soon we would like to trigger at least the following jobs:

Change in /distributions -> verify and merge jobs to build distributions, run system test, review code, merge to master and upload release artifacts to Nexus
Change in /packaging -> Not sure if this should trigger anything...
Change in /testcode -> verify and merge jobs to run system test with new code, review code and merge to master (no upload to Nexus needed for now, maybe later if we want to package the testcode for distribution)
Change (merge) in other OpenDaylight project -> csit job to build distributions, run system test and upload release artifacts to Nexus (we do not upload to Nexus if system test fails)

Does this make sense?

BR/Luis

-----Original Message-----
From: Andrew Grimberg [mailto:agrimberg@...]
Sent: Tuesday, November 05, 2013 12:01 PM
To: Luis Gomez
Cc: 'integration-dev@...'; 'infrastructure@...'
Subject: Re: [integration-dev] Jenkins question

On Tue, 2013-11-05 at 19:19 +0000, Luis Gomez wrote:

I have a question regarding Jenkins setup: if I create a branch in our
git repo for new test code (Python or Robot) stored under "testcode"
folder or I create a branch in our git repo for new distribution code
(Maven) stored under "distributions" folder. Would it be possible to
configure different jobs for these different branches? i.e. instead of
triggering on project, trigger on folders.
What jenkins builds is completely dependent up where it's pointing from
the git branch options as well as the gerrit path triggers.

So, yes, it's feasible to have different jobs for different branches or
even portions of branches.

-Andy-

--
Andrew J Grimberg
Systems Administrator
The Linux Foundation