Questions tagged [hudson]

Hudson is an extensible continuous integration server written in Java and capable of running on Linux, OS X and Windows.

In early 2011, Hudson was forked into the Hudson and Jenkins projects after a trademark dispute with Oracle.
Hudson remains an open source project, now governed by the Eclipse Foundation, with Oracle being the primary contributor.

The majority of Hudson users, core and plugins developers switched to Jenkins (tag: ).

Hudson has a wide variety of plugins that integrate external tools and source control systems, provide build reports and analytics, and customize build behaviours.

It is common to configure a Hudson installation to run build slaves on several machines in order to build on different platforms, or to provide load balancing.

2659 questions
91
votes
9 answers

How to trigger a build only if changes happen on particular set of files

How do I tell Jenkins/Hudson to trigger a build only for changes on a particular project in my Git tree?
xavier.seignard
  • 10,084
  • 12
  • 44
  • 71
90
votes
10 answers

Jenkins - passing variables between jobs?

I have two jobs in jenkins, both of which need the same parameter. How can I run the first job with a parameter so that when it triggers the second job, the same parameter is used?
Stefan Kendall
  • 61,898
  • 63
  • 233
  • 391
88
votes
15 answers

How do I clear my Jenkins/Hudson build history?

I recently updated the configuration of one of my hudson builds. The build history is out of sync. Is there a way to clear my build history? Please and thank you
myusuf3
  • 16,859
  • 25
  • 70
  • 100
87
votes
9 answers

Increase the Jenkins login timeout

Does anyone know how to increase the the timeout window before Jenkins logs out a user? I'm looking to raise it to 1 day or so. I work in and out jenkins all day and we keep getting logged out between running of jobs. Added to this frustration,…
Ray
  • 36,097
  • 17
  • 85
  • 129
86
votes
4 answers

Handling multiple branches in continuous integration

I've been dealing with the problem of scaling CI at my company and at the same time trying to figure out which approach to take when it comes to CI and multiple branches. There is a similar question at stackoverflow, Multiple feature branches and…
toomasr
  • 4,573
  • 2
  • 28
  • 36
76
votes
5 answers

buildbot vs hudson/jenkins for C++ continuous integration

I'm currently using jenkins/hudson for continuous integration a large mostly C++ project. We have separate projects for trunk and every branch. Also, there are some related projects for the Java code, but the setup for those are fairly basic right…
deuberger
  • 3,450
  • 6
  • 29
  • 32
74
votes
3 answers

How are environment variables used in Jenkins with Windows Batch Command?

I'm trying to use Jenkins (Global) environment variables in my xcopy script. ${WORKSPACE} doesn't work "${WORKSPACE}" doesn't work '${WORKSPACE}' doesn't work
DonBecker
  • 2,324
  • 3
  • 21
  • 42
74
votes
2 answers

Is Ansible a replacement for a CI tool like Hudson/Jenkins?

Recently, in our company, we decided to use Ansible for deployment and continuous integration. But when I started using Ansible I didn't find modules for building Java projects with Maven, or modules for running JUnit tests, or JMeter tests. So,…
Ganesh P
  • 1,055
  • 1
  • 12
  • 18
73
votes
8 answers

In Jenkins, how to checkout a project into a specific directory (using GIT)

Sorry for the 'svn' style - we are in a process of migration from SVN to GIT (including our CI Jenkins environment). What we need is to be able to make Jenkins to checkout (or should I say clone?) the GIT project (repository?) into a specific…
viebel
  • 13,724
  • 10
  • 43
  • 78
72
votes
8 answers

What is the difference between Hudson and CruiseControl for Java projects?

I think the title sums it up. I just want to know why one or the other is better for continous integration builds of Java projects from Svn.
Jay R.
  • 29,837
  • 17
  • 50
  • 61
67
votes
6 answers

How to prevent certain Jenkins jobs from running simultaneously?

I have a couple of jobs that use a shared resource (database), which sometimes can cause builds to fail in the (rare) event that the jobs happen to get triggered simultaneously. Given jobs A through E, for example, is there any way to specify that…
Jonik
  • 74,291
  • 66
  • 249
  • 356
66
votes
4 answers

Jenkins/Hudson - accessing the current build number?

I have a report file I'm generating, and I would like to be able to add the current build number to that file within a Jenkins job. Is there an environment variable or plugin I can use to get at the current build number?
Stefan Kendall
  • 61,898
  • 63
  • 233
  • 391
64
votes
4 answers

How do I trigger another job from hudson as a pre-build step?

How do I trigger another job from hudson as a pre-build step?
sorin
  • 137,198
  • 150
  • 472
  • 707
64
votes
5 answers

How do I uninstall a plugin from Jenkins (Hudson)?

I have a few plugins in my Jenkins installation which I no longer need. I've already disabled the plugins (and my build still work), and I'd like to remove the plugins completely. What is the right process for completely removing a Jenkins (Hudson)…
Jim Hurne
  • 6,575
  • 3
  • 41
  • 42
62
votes
3 answers

How to create and add users to a group in Jenkins for authentication?

I choose to use "Jenkins's own user database" security realm for user login as I couldn't use LDAP in my company. And Google's OpenID has issue when you decided to change the hostname or port number to something else. And I use "Project-based…
xbeta
  • 2,187
  • 4
  • 26
  • 47