hudson

What's the workflow of Continuous Integration With Hudson?

▼魔方 西西 提交于 2019-12-03 15:05:12
I am referred to Hudson today. I have heard about continuous integration before, but I have no idea what the heck is a ci-server. Hudson is really easy to install in Ubuntu and in several minutes I managed to set up an instance of it. But I don't quite understand the workflow of a ci-server, or how am I supposed to use it? Please tell me if you have experience about ci, thanks in advance. Edit: I am currently using Mercurial as my SCM , and I wonder what is the right way to use it with Hudson . I have installed the Mercurial Plugin of Hudson , and I create a new job with a local repository.

Can my build stipulate that my code coverage never get worse?

流过昼夜 提交于 2019-12-03 14:52:36
I am using hudson CI to manage a straight java web project, using ant to build. I would like to mandate that the unit test coverage never be worse than the previous build, thereby making sure any new code is always tested, or at least the coverage is continually improving. Is there a hudson plugin that works this way? Edit: I am currently using Emma, but would be willing to switch to another coverage app. Also, as a clarification, I've seen the thresholds in some Hudson plugins, but that's not exactly what I'm after. For example what I'd like is that if coverage for Build #12 was 46% overall,

Is it possible to convert a Jenkins free-style job to a multi-configuration job?

只谈情不闲聊 提交于 2019-12-03 14:51:07
问题 I have quite a few free-style jobs in Jenkins that I would like to convert to multi-configuration jobs so I can build across multiple platforms under one job. These jobs specify quite a few build parameters and I would like to not have to set them up manually again by creating new multi-configuration jobs. Each job is currently limiting their builds to the platform we've been building on and the only other option I see is to clone the existing job and change the restriction to the new

Best practices for versioning Hudson settings

ε祈祈猫儿з 提交于 2019-12-03 14:15:19
问题 We're using Hudson continuous integration server frequently on projects. But Hudson seems lacking of proper versioning of the jobs configuration. A few times, this has lead to problems: Somebody changes or tweaks the configuration on jobs and something that used to work stopped working. I have tried to version-control jobs on my local Hudson server (on my laptop). But this is not optimal: 1) it's only for me. 2) i need to mirror jobs from a central build server – and may also need to modify

Sending Subversion Change Log Info Via Hudson

泄露秘密 提交于 2019-12-03 14:08:13
I'm trying to integrate Hudson into our development process, and everything is going smooth except for one thing. I had been using Phing to do deployments, and one of the things that was being triggered was an email to our tech support email address containing a list of all the commit messages between the last time code was deployed and the present SVN revision. I was doing something like this: read in a file from the root directory of the currently-deployed application that contains the SVN revision when the app was deployed place that value in a Phing variable insert that value into a

Configure Hudson to only execute Build or Post Build actions if changes in SVN are detected

99封情书 提交于 2019-12-03 13:54:01
Is there a way to configure Hudson to only execute Build or Post Build actions if there are changes in SVN/CVS Thank you Instantsoup You can have Hudson poll the SCM for changes and only do things if it finds changes. Poll SCM: Configure Hudson to poll changes in SCM. Note that this is going to be an expensive operation for CVS, as every polling requires Hudson to scan the entire workspace and verify it with the server. Consider setting up a "push" trigger to avoid this overhead, as described in this document You can also add something to your SCM post-commit hooks that will fire off a Hudson

Separate Building from Deployment with Hudson

筅森魡賤 提交于 2019-12-03 13:27:01
问题 We have started using Hudson, and the current workflow is: checkout locally > code > run tests > update > run tests > commit Rather that polling, Hudson simply sits there until we instantiate a build. It then: checkout locally > run Phing script The Phing script then: svn export latest revision > run tests (if successful) > generates reports etc.. > compresses export > scp to production server > .. do magic to make site live... That all works fine and dandy, however it doesn't really give us

Deploy as Jenkins User or Allow Jenkins To Run As Different User?

心已入冬 提交于 2019-12-03 13:22:42
I'm just getting started with Jenkins CI, and had a question which I'm struggling to find answers for in the docs or online. Wonder if someone might be able to offer some advice? I'm attempting to use it to automatically deploy my dev and stage branches of my Django projects which are hosted on a Github organisation repository (ie, private). At the moment I have a user "django" who can access the Github repo via a Github deploy key. My Jenkins user can't access the repo. What's the best practice way of dealing with this - should I be creating an ssh deploy key for the "jenkins" user, or should

Can Hudson be configured to build every revision?

守給你的承諾、 提交于 2019-12-03 13:03:51
问题 I've started experimenting with Hudson as a build server. I'm using subversion and have it configured to poll every minute. The issue I'm seeing is that if a build at revision 10 takes 5 minutes and there are 5 commits during that time, Hudson will next build revision 15. Is there a way to ensure every revision is built? 回答1: Hudson does not yet have this capability, but its been asked for a few times on the mailing list. See issue 673 回答2: You have to do a few things to build exactly each

Is there (an automated) way to backup Hudson CI files?

余生长醉 提交于 2019-12-03 12:57:48
问题 Here at my company we have three Hudson CI servers with 100+ jobs configured. We are looking for an automated way to periodically backup job configurations and build history. Currently we have an ant script that we configure as a job but it's not easy to maintain and not elegant. Have any of you found a way to manage this? 回答1: There is a Backup Plugin. I don't believe that it supports scheduling of periodic backups, but you might be able to trigger it by accessing it through the URL (like