Commit Graph
32590 Commits
Author SHA1 Message Date
Jerome Lacoste 02851236d5 JENKINS-8702 improve unit tests. FilePathTest#testCopy2 isn't a test it has no assertions.
It is slow and take 10sec on my compiter. Disabling it. One could remove it I guess.
2011-02-05 12:01:48 +01:00
Jerome Lacoste b4717d2515 JENKINS-8702 improve unit tests. UpdateCenterTest depends on online resource and takes too long. Fix this 2011-02-05 11:43:07 +01:00
Kohsuke Kawaguchi 63f67f30bd Fixing the messed up marker tags.
Looks like I broke this in d88df7eac5
2011-02-04 23:36:27 -08:00
Kohsuke Kawaguchi 1f8551d02b explaining how to write this file 2011-02-04 23:32:44 -08:00
Jerome Lacoste 58166dfb2b Merge remote branch 'upstream/master'
Reapplied 329a020188

Conflicts:
	core/src/main/java/hudson/widgets/HistoryWidget.java
2011-02-05 07:38:58 +01:00
Kohsuke Kawaguchi 85a8dd009a [FIXED JENKINS-4756] recording the pull request #33 from Janick Reynders 2011-02-04 21:29:36 -08:00
Kohsuke Kawaguchi f88a2ba333 Merge branch 'JENKINS-4756'
* JENKINS-4756:
  minor touch up
  FIXED JENKINS-4756 the executor number was not always unique. Computer.executors.size() does not provide a unique number within one Computer.
2011-02-04 21:28:12 -08:00
Kohsuke Kawaguchi 36d9b56250 minor touch up 2011-02-04 21:28:01 -08:00
Kohsuke Kawaguchi 6c521259e2 [FIXED JENKINS-8660] recording the fix from Jerome Lacoste. 2011-02-04 21:15:03 -08:00
Kohsuke Kawaguchi 691f230519 Merge branch 'JENKINS-8660'
* JENKINS-8660:
  fail more gracefully if the header is not provided.
  JENKINS-8660: loading the build history cause an NPE on the History Widget
2011-02-04 21:12:49 -08:00
Kohsuke Kawaguchi 329a020188 fail more gracefully if the header is not provided. 2011-02-04 20:34:09 -08:00
Kohsuke Kawaguchi fd93cf05df Recording the fix in HUDSON-8656.
Yes, this is HUDSON-8656 and not JENKINS-8656.
2011-02-04 20:23:20 -08:00
Kohsuke Kawaguchi f8515e96fe Merge branch 'HUDSON-8656' of https://github.com/nairb774/jenkins 2011-02-04 20:18:23 -08:00
Kohsuke Kawaguchi 91f79062dc Recording c628bdd32b 2011-02-04 20:10:02 -08:00
Kohsuke Kawaguchi 758aedf885 Merge commit 'c628bdd32be8fdf0f663b373836585498e1ecaa1'
* commit 'c628bdd32be8fdf0f663b373836585498e1ecaa1':
  First pass at a fix for JENKINS-8592.
2011-02-04 20:07:39 -08:00
Kohsuke Kawaguchi 73a8007d43 [JENKINS-8592] let the writer end know if the reader end of the pipe
failed.
2011-02-04 20:06:53 -08:00
Kohsuke Kawaguchi 469610225d [FIXED JENKINS-3935] add build description to feeds.
(recording the previous commit 9d7d0d753d by Richie Vos)
2011-02-04 18:32:13 -08:00
Brian Atkinson c628bdd32b First pass at a fix for JENKINS-8592.
The problem is that the sending side has no way of knowing when the
receiving side has hung up. So when the receiving side hangs up we should
be able to read till the stream runs out, then close. Not the optimal
solution, but one that should work for now.

http://issues.jenkins-ci.org/browse/JENKINS-8592
2011-02-04 18:46:04 -06:00
Brian Atkinson f134bd68b9 Add two exact tests for HUDSON-8656. 2011-02-04 18:45:12 -06:00
Brian Atkinson e7eac75978 This adds a test from HUDSON-8656, and is likely related to issues found in
HUDSON-8401.

This grouping of tests targets all Sunday to *another day of week* cron
tabs. There are likely other pairs that could be tested, but this seemed to
work out most of the bugs.
2011-02-04 18:45:12 -06:00
Richie Vos 9d7d0d753d Add the build's description to the build feed 2011-02-04 16:49:45 -06:00
Olivier Lamy 4cce11efb3 update changelog for 8676 2011-02-04 23:45:38 +01:00
Olivier Lamy 774f655398 Merge branch 'lacostej-pull5' of https://github.com/lacostej/jenkins 2011-02-04 23:41:00 +01:00
Jerome Lacoste 9005eb665f JENKINS-8676 Windows XP slave stopped working in 1.396 (related to name change)
After thinking about it, I don't want to deal with hudsonslave here. jenkinsslave should be found anyway, so that code path should not have been triggered.
And cleaning up residual services isn't jenkins job. Otherwise both can't coexist.
2011-02-04 22:36:11 +01:00
Jerome Lacoste f40b4ffbc8 JENKINS-8676 Windows XP slave stopped working in 1.396 (related to name change)
After thinking about it, I don't want to deal with hudsonslave here. jenkinsslave should be found anyway, so that code path should not have been triggered.
And cleaning up residual services isn't jenkins job. Otherwise both can't coexist.
2011-02-04 22:34:26 +01:00
Jerome Lacoste 3106a80bcf Merge remote branch 'upstream/master' 2011-02-04 21:37:39 +01:00
Jerome Lacoste a70f6b19ae JENKINS-8698 HudsonTestCase sometimes fails with NPE in tearDown() while trying to free htmlunit resources
Not really sure what is happening, but I don't think the build should fail here.
So let's try to be more resiliant (try twice loading the page) and don't fail if the exception occurs again.
2011-02-04 21:36:25 +01:00
Nathan Parry a88920aab7 Fix JENKINS-8196
Persist a user-requested offline status for a slave across
restarts. Previously slaves would come back online if the server
was restarted while they were marked 'temporarily offline'.

I believe this also addresses JENKINS-7934 and JENKINS-7805
which look like duplicates.
2011-02-04 12:09:40 -08:00
Andrew Bayer d990fbb3f1 Merge branch 'lacostej-pull4' of https://github.com/lacostej/jenkins into lacostej-lacostej-pull4 2011-02-04 11:51:26 -08:00
Andrew Bayer 657c48777e Merge branch 'lacostej-pull3' of https://github.com/lacostej/jenkins into lacostej-lacostej-pull3 2011-02-04 11:45:59 -08:00
Jerome Lacoste 4077b5da1c Merge remote branch 'upstream/master' 2011-02-04 20:33:22 +01:00
alanharder c3e7be3461 update some images to use ci.jenkins-ci.org,
add "since 1.378" in one changelog item
2011-02-04 10:43:30 -08:00
Jerome Lacoste 020a4ee92a JENKINS-8686 IO stream copies are not done properly.
Some more work:
* reviewed some callers
* took note that some classes have been moved into stapler
* used IOUtil.closeQuietly() in a few places
2011-02-04 15:34:26 +01:00
Jerome Lacoste bfbaf2c9d9 JENKINS-8686 IO stream copies are not done properly.
First pass at making sure we don't stop copying when the reader reads 0 characters.

I will now also review the callers for our internal code, and check if we can use IOUtils methods instead.
2011-02-04 15:34:07 +01:00
Kohsuke Kawaguchi 9c01038ab5 [FIXED JENKINS-5784] logrotate script for RPM/openSUSE bug fix 2011-02-03 23:50:20 -08:00
Kohsuke Kawaguchi 15c66f0d20 [FIXED JENKINS-5415] force terminate Jenkins if it fails to shut down 2011-02-03 23:08:20 -08:00
Kohsuke Kawaguchi d74253c5bc [FIXED JENKINS-8159] switch to default-jre
Eclipse package depends on this
<http://packages.ubuntu.com/maverick/eclipse-jdt>, so I'm doing
monkey-see-monkey-do.
2011-02-03 22:45:19 -08:00
Kohsuke Kawaguchi 129adcea95 Recording JENKINS-4047 toward 1.397 2011-02-03 22:14:26 -08:00
Kohsuke Kawaguchi 2218754197 [FIXED JENKINS-4047] don't mess with file permissions
ahochsteger asks 'why do we mess with file permissions anyway?' and he's
right! I digged the history but couldn't find why we do it.

I think we should just set the permissions of the top-level directories,
but leave the other file permissions as-is.

In addition,

- I see no point in touching usr/bin usr/sbin.
  perhaps C&P mistake from some samples?

- Don't touch /var/lib/hudson if .for-jenkins is present,
  so that people using the hudson user can keep upgrading new
  versions of jenkins and run it as hudson

- /var/run/hudson contains no important information,
  so no need to bring it over to /var/run/jenkins
2011-02-03 22:09:52 -08:00
Kohsuke Kawaguchi c1b9b29356 [FIXED JENKINS-8658]
Recording the earlier changes and the integration of the new
executable-war.
2011-02-03 18:59:21 -08:00
Kohsuke Kawaguchi d88df7eac5 Jerome Lacoste reported that 5c91eb1fe5 fixed JENKINS-7745. So marking it as closed. 2011-02-03 17:59:46 -08:00
Janick Reynders 88a2860339 FIXED JENKINS-4756 the executor number was not always unique. Computer.executors.size() does not provide a unique number within one Computer. 2011-02-03 23:21:01 +01:00
Jerome Lacoste a8a931d8ec JENKINS-8676 Windows XP slave stopped working in 1.396 (related to name change)
The ManagedWindowsServiceLauncher refers to hudson.exe and hudson-slave.exe while we renamed the artifact to jenkins.exe.

Tentative fix, completely untested (no windows box around).
Not sure about the service name (jenkinsslave). I added a second check for backward compatibility but I have no idea if it's useful.
2011-02-03 23:08:12 +01:00
Jerome Lacoste 287208f973 JENKINS-8672 stop depending on Svn SCM and java.net host for testing MavenBuild. 2011-02-03 23:06:25 +01:00
Jerome Lacoste a41c87192d JENKINS-7836 tentative fix for the copy from slave to master issues. The problem looks similar to JENKINS-7745, so we might as well synchronized the ProxyInputStream. 2011-02-03 23:04:36 +01:00
Jerome Lacoste 9a13990be9 JENKINS-8660: loading the build history cause an NPE on the History Widget
loadAllBuildHistory() fails to set the headers field on the replacement buildHistory DOM element.

The patch fixes the problem by recreating a headers field.
It also:
* slightly refactor the loadAllBuildHistory() method for readability
* add a FIXME note that the server side history widget should fail if the n parameter is missing.
* add a pre-condition check to the buildHistory() update to catch potential bugs (note that the logging is disabled as Yahoo.log doesn't appear available)
2011-02-03 23:03:07 +01:00
Andrew Bayer 6424a80c98 Merge branch 'lacostej-pull' of https://github.com/lacostej/jenkins into lacostej-lacostej-pull 2011-02-03 13:51:39 -08:00
Jerome Lacoste 2332b114a3 JENKINS-8676 Windows XP slave stopped working in 1.396 (related to name change)
The ManagedWindowsServiceLauncher refers to hudson.exe and hudson-slave.exe while we renamed the artifact to jenkins.exe.

Tentative fix, completely untested (no windows box around).
Not sure about the service name (jenkinsslave). I added a second check for backward compatibility but I have no idea if it's useful.
2011-02-03 22:20:25 +01:00
Jerome Lacoste 2d45108647 JENKINS-8672 stop depending on Svn SCM and java.net host for testing MavenBuild. 2011-02-03 21:53:05 +01:00
Jesse Farinacci 8fdbedb1d0 bump to org.jenkins-ci:jenkins:1.12 2011-02-03 14:02:59 -05:00