SCM polling with parametrized build

1,433 views
Skip to first unread message

Irfan Sayed

unread,
Jun 6, 2011, 10:12:45 AM6/6/11
to us...@hudson.java.net, Hudson Developers, jenkins...@googlegroups.com, jenkin...@googlegroups.com
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


Richard Bywater

unread,
Jun 6, 2011, 2:49:51 PM6/6/11
to jenkin...@googlegroups.com
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.

Pekka Nikander

unread,
Oct 11, 2012, 1:21:34 AM10/11/12
to jenkin...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages