Quantcast

SCM polling with parametrized build

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

SCM polling with parametrized build

Irfan Sayed
Hi

i need to use SCM polling option in hudson configuration. but, my job/build is parametrized build
when scm polls the changes from version control system , it does not take any parameters defined in the job configuration when the build fires
how to pass all these parameters when SCM poling option is enabled??

plz suggest


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: SCM polling with parametrized build

Richard Bywater
Please do not cross post to about every Hudson/Jenkins list you can find.

I'd suggest if your query is related to Hudson you post to the Hudson
list and if it's related to Jenkins you post to the Jenkins user list
(not the Dev list as it's a user question not a Jenkins development
one)

Richard.

On Tuesday, June 7, 2011, Irfan Sayed <[hidden email]> wrote:

> Hi
>
> i need to use SCM polling option in hudson configuration. but, my job/build is parametrized build
> when scm polls the changes from version control system , it does not take any parameters defined in the job configuration when the build fires
> how to pass all these parameters when SCM poling option is enabled??
>
> plz suggest
>
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: SCM polling with parametrized build

Pekka Nikander
In reply to this post by Irfan Sayed
i need to use SCM polling option in hudson configuration. but, my job/build is parametrized build
when scm polls the changes from version control system , it does not take any parameters defined in the job configuration when the build fires
how to pass all these parameters when SCM poling option is enabled??

Based on my rather casual study on the interaction between SCM plugins and polling, it looks to me that when polling, Jenkins does not consider parametrized builds.  That is, in SCM.java the poll() and compareRemoteRevisionWith() methods take a project, not a build, as an input object.   In practical terms, the Jenkins polling mechanism is not considering whether the project should be built with certain parameters, but whether Jenkins should build the project at all, "independent" of the parameter values.  I guess that most SCM plugins don't even consider parameters.

More generally, in order to make polling and parametrized builds to really work together, it looks to me that there should be a more generic framework that would allow polling to be defined in a matrix build in such a way that the build would be separately considered with each parameter set defined in the matrix build.  And, of course, this should work through the parametrized build trigger plugin, allowing polling to be defined in the matrix build and the parameters to be used in an SCM plugin defined in a triggered parametrized project.  Looks like a rather big change to me, but then I don't know the gory details well enough.

--Pekka Nikander

Loading...