Manage a set of projects

18 views
Skip to first unread message

David Mata

unread,
May 16, 2011, 2:40:31 AM5/16/11
to Jenkins Users
Hi,
We have many projects in Jenkins and if we change the settings, we
have to change each of the projects.
How would you automate this type of change? For example, change the
username and password to SVN on every project.

Didier Durand

unread,
May 16, 2011, 7:47:58 AM5/16/11
to Jenkins Users
Hi David,

For the case you mention and if you work under Linux, the credentials
are stored once per repository in the home directory of the jenkins
user in .subversion hidden directory.

So in that case, just upgrade 1 project and they should all be updated
at once (again under linux)

regards

didier

Didier Durand

unread,
May 16, 2011, 7:52:42 AM5/16/11
to Jenkins Users
Oops,

forgot 2nd part:

in general, many parameters of your jobs are stored in config.xml file
residing in the directory $JENKINS_HOME/jobs/yourjob_name.

So, what you can do in write a program (as a jenkins project that you
launch when needed -using input parameters to be a bit flexible) that
parses all your config.xml files and update the values that you need
to update.

That's how I do it.

regards

didier

Jacob Robertson

unread,
May 16, 2011, 8:26:05 AM5/16/11
to jenkins...@googlegroups.com
Also, depending on your needs, the configuration slicing plugin can
help. That plugin has a lot of potential to manage settings across
multiple projects, but for now it (only) manages about 5 or so
settings. You might submit feature requests to that plugin on JIRA.

David Mata

unread,
May 16, 2011, 8:28:33 AM5/16/11
to Jenkins Users
Thanks, Didier. This is our first choice. I think that this
possibility needs a secure restart after the task and we do not like
it

I thought of taking a list of projects and modify them via REST, but
not all settings are the same. Think permissions are different to svn
or sonar profile.

I need something simple to administrators, who are not experts in
Java.

Maybe I
1. get the list of jobs giving a pattern.
2. create a class for each setting variable
3. modify the job.

¿What do you think?

Lars Fischer

unread,
May 16, 2011, 8:29:31 AM5/16/11
to jenkins...@googlegroups.com
2011/5/16 David Mata <dma...@gmail.com>:

You could take a look at this:
http://evgeny-goldin.com/wiki/Maven-jenkins-plugin

Regards,
Lars

David Mata

unread,
May 16, 2011, 8:42:51 AM5/16/11
to Jenkins Users
Thank you. I'm looking for something like this.

Maybe I could participate

On 16 mayo, 14:26, Jacob Robertson <jacob.robertson.w...@gmail.com>
wrote:
> Also, depending on your needs, the configuration slicing plugin can
> help.  That plugin has a lot of potential to manage settings across
> multiple projects, but for now it (only) manages about 5 or so
> settings.  You might submit feature requests to that plugin on JIRA.
>

David Mata

unread,
May 16, 2011, 12:10:20 PM5/16/11
to Jenkins Users
Do you know the current status of this plugin? It seems to be
discontinued.

On 16 mayo, 14:26, Jacob Robertson <jacob.robertson.w...@gmail.com>
wrote:
> Also, depending on your needs, the configuration slicing plugin can
> help.  That plugin has a lot of potential to manage settings across
> multiple projects, but for now it (only) manages about 5 or so
> settings.  You might submit feature requests to that plugin on JIRA.
>

Jacob Robertson

unread,
May 17, 2011, 8:40:02 AM5/17/11
to jenkins...@googlegroups.com
I know that I submitted a patch to that plugin (to dramatically change
the UI) that I think was applied, but then a new version was never
released. So, at that time the developer was engaged, but my guess is
it's not an active thing. I've thought of picking it up, and
expanding it, but was focused on other plugins at the time.

Khai Do

unread,
Jul 14, 2015, 2:13:03 PM7/14/15
to jenkins...@googlegroups.com, jacob.robe...@gmail.com
There are lots of suggestions to this topic in thread https://groups.google.com/d/msg/jenkinsci-users/OnKpb4Iu0YY/1y_jH3-FVcQJ
Reply all
Reply to author
Forward
0 new messages