i have task want realize jenkins, don't know how it.
i have view full of jobs, pointing same svn repo. each job build 1 maven module present on svn repo.
once year, release version, , therefore create new branch development on future new version.
in jenkins, means want view jobs pointing on released version branch, , new view same jobs, pointing on future version branch.
i know can manually cloning , modify branch jobs, want least number of actions possible (ideally 1 :-)).
take @ jenkins built-in possibilities , in existing plugins, found nothing , have no idea how it.
there possibility script kind of job ? or plugin doing ?
thank you,
seb
i suppose future versions developed on trunk. url these versions same (ex: http://svn.yourcompany.com/project1/trunk).
i propose group trunk jobs in dedicated folder using cloudbees folder plugin.
this plugin group jobs in physical folder in jenkins home folder (ex: jobs/trunk).
when want create new jobs release branch, write script which:
- copy jobs/trunk folder jobs/release_2.0
- replace http://svn/.../trunk http://svn/.../branches/2.0 (you can use regexp that)
- rename jobs (you need add 2.0 @ end of job names)
- reload jenkins configuration
it should work :)
Comments
Post a Comment