Version Control for Hudson Continuous Integration Build Jobs
Asked Answered
A

4

9

We have a continuous integration server with over 40 jobs that are constantly changing. I would like to version control continuous integration build jobs in Hudson so we can roll back changes if we have problems.

Is there a Hudson plugin that will do this or other solution that already exists or should I keep the config.xml files in SVN.

Armstead answered 28/3, 2010 at 15:11 Comment(1)
Similar question: #1907046Serial
I
5

Hudson Labs has a really great write up on this, Keeping your configuration and data in Subversion

This is the first bit of the article

We all know that keeping important files in version control is critical, as it ensures problematic changes can be reverted and can serve as a backup mechanism as well. Code and resources are often kept in version control, but it can be easy to forget your continuous integration (CI) server itself! If a disk were to die or fall victim to a misplaced rm -rf, you could lose all the history and configuration associated with the jobs your CI server manages.

It’s pretty simple to create a repository, but it isn’t obvious which parts of your $HUDSON_HOME you’ll want to backup. You’ll also want to have some automation so new projects get added to the repository, and deleted ones get removed. Luckily we have a great tool to handle this: Hudson!

We have a Hudson job which runs nightly, performs the appropriate SVN commands, and checks in

You only seem to be interested in the configuration, which is fine, just ignore or filter out the bits about the data and focus on the configuration.

Ikkela answered 26/7, 2010 at 21:8 Comment(1)
The link given goes to a malware siteGuanabara
B
2

This is one of the more recent threads about using version control with Hudson's configuration on the Hudson users list.

There are no plugins to do store configuration in an SCM right now (March 2010) though the backup plugin might do something close to what you want, but perhaps with less of a view of 'change' and more of just a snapshot at any given time.

Bisect answered 28/3, 2010 at 15:40 Comment(0)
O
2

The relatively new Job Config History plugin gets part of the way there - it doesn't actually store the configurations in source control, but it does provide history and auditing of changes to jobs.

Oys answered 30/3, 2010 at 14:56 Comment(0)
J
1

You could look into the SCM Sync configuration plugin.

It automatically commits all of your jenkins config changes to svn. that way you can track configuration errors easily.

https://wiki.jenkins-ci.org/display/JENKINS/SCM+Sync+configuration+plugin

Jovitta answered 27/5, 2012 at 13:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.