Commit Graph
11799 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
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 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 f8515e96fe Merge branch 'HUDSON-8656' of https://github.com/nairb774/jenkins 2011-02-04 20:18:23 -08: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 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
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
Jerome Lacoste 4077b5da1c Merge remote branch 'upstream/master' 2011-02-04 20:33:22 +01: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
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 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
alanharder 3ba54b53ae hudson.war/jenkins.war changes.. made getBackupVersion use getHudsonWar()+".bak"
to match 2 other methods in this file (instead of hardcoded hudson.war.bak)
2011-02-03 09:47:50 -08:00
alanharder b3c661d59b some hudson.war/jenkins.war changes 2011-02-03 09:41:00 -08:00
Jerome Lacoste 3ddb68f038 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 13:06:57 +01:00
Jerome Lacoste 42c0bdb703 JENKINS-8658 cleanup. Inner class can be static 2011-02-03 05:38:50 +01:00
Jerome Lacoste 4f857bccb7 JENKINS-8658 let getHomeDir gather information about where it finds its location. Useful for troubleshooting. 2011-02-03 04:47:07 +01:00
Brad Trimby 0b424d6902 Change 'Hudson Continuous Integration server' to Hudson.getDisplayName() in test email 2011-02-02 21:33:38 -05:00
Manolo Carrasco 0803e89068 Add Spanish missing keys. Update Spanish internationalized values to have the word Jenkins instead of Hudson. Changes in translation tool to advise when a file have the Hudson word 2011-02-02 09:41:55 +01:00
Kohsuke Kawaguchi b80121a17a the trunk is toward 1.397 2011-01-31 19:17:54 -08:00
Kohsuke Kawaguchi 31a76bc4cb Merge branch 'after-first-release'
... so as to follow the convention of keeping the master branch open for
commits.

* after-first-release:
  noting the changes
  Other languages on JVM may not be able to provide the type information.
  Added autocomplete feature to BuildTrigger
2011-01-31 19:11:04 -08:00
petehayes 31b9a2f48d Fixed HUDSON-6689. Updated the primary view name (default view) if someone changed the name of the view that was marked as primary. 2011-01-31 20:59:01 -05:00
Kohsuke Kawaguchi a178194fb5 Merged pull request #19
* commit '0ffa03278e597edcde5576971a7e51b8938d6edd':
  Added autocomplete feature to BuildTrigger
2011-01-31 13:10:17 -08:00
Kohsuke Kawaguchi 237dbe3e2b Other languages on JVM may not be able to provide the type information. 2011-01-31 12:59:07 -08:00
Kohsuke Kawaguchi d14ca2cec7 regression in renaming 2011-01-31 10:06:11 -08:00
Kohsuke Kawaguchi 4ab9ad2634 bug fix 2011-01-31 10:06:11 -08:00
Kohsuke Kawaguchi 3a7a2af2ac Final touch up.
According to  Juha Heimonen <heimojuh@gmail.com>, it's "a" with two dots
on top.
2011-01-31 10:06:11 -08:00
Kohsuke Kawaguchi ca3b23a4c6 typo 2011-01-31 10:06:11 -08:00
Andrew Bayer 44a7fbe74c More Hudson->Jenkins work 2011-01-31 06:35:03 -08:00
Kohsuke Kawaguchi 31cd5b3ad9 Renamed the Windows installer 2011-01-31 00:06:49 -08:00
Kohsuke Kawaguchi f08fd38a76 hudson-cli.jar to jenkins-cli.jar rename 2011-01-30 23:51:35 -08:00
Kohsuke Kawaguchi 294656a558 error in search&replace 2011-01-30 23:46:59 -08:00
Kohsuke Kawaguchi 3a1447ea9a Updating the URL. 2011-01-30 23:44:52 -08:00
Kohsuke Kawaguchi ec67f19660 other misc fixes 2011-01-30 23:32:21 -08:00
Kohsuke Kawaguchi 052cb844bd renamed the hudson.diagnosis package 2011-01-30 23:31:24 -08:00
Kohsuke Kawaguchi b7b4dead23 renamed the hudson.lifecycle package 2011-01-30 23:25:57 -08:00
Kohsuke Kawaguchi e7fb48b4aa renamed the hudson.security package 2011-01-30 23:22:43 -08:00