simultaneous instances of the same hudson/jenkins job -


i way individual users send repo path hudson server , have server start build of repo. don't want leave behind trail of dynamically created job configuration. i'd start multiple simultaneous instances of same job. requires workspaces different different instances. believe isn't possible using of current extensions. i'm open different approaches i'm trying accomplish.

i want hudson server able receive requests builds outside sources, , start them long there free executors. want build configuration same builds except location of repo. don't want have dozens of identical jobs sitting around automatically generated names.

is there out there using hudson or jenkins this? how set up? guess enough scripting dynamically create necessary job configuration through cli api script, , destroy when it's done. want keep artifacts around, destroying job when it's done running issue. don't want write , maintain own extension.

this should pretty straightforward jenkins without requiring plugins, though depends on type of scm use.
it's worth upgrading hudson in case; there have been improvements features required support use case in many releases since becoming jenkins.

you want pass repo path parameter build, should select "this build parameterized" option in build config. there can add string parameter called repo_path or similar.

next, specify code checked-out from, replace path ${repo_path}.
if checking out code — or otherwise need access repo path — script, variable automatically added environment, can refer ${repo_path} shell script or ant file.

at point, when pressing build now, prompted enter repo path before build start. mentioned in wiki page above, can call buildwithparameters url start build directly desired parameter, e.g. http://server/job/myjob/buildwithparameters?repo_path=foo

finally, if want builds execute concurrently, jenkins can manage creating temporary workspaces concurrent builds. enable option "execute concurrent builds if necessary" in job config.

the artifacts available, same other jenkins build. though want manage how many recent artifacts kept; can done checking "discard old builds", , under advanced…, can select enter value "max # of builds keep artifacts".


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -