Commit Graph
11799 Commits
Author SHA1 Message Date
kohsuke 61cd300725 CLI commands on protected Hudson now asks a password interactively, if run on Java6.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28504 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 23:10:36 +00:00
kohsuke f5c5570b6e integrated authentication to the @CLIMethod based CLI commands.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28503 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 23:01:47 +00:00
kohsuke 084591eecc got rid of the notion that the transport can implicitly authenticate the session.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28502 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 22:59:23 +00:00
kohsuke 1952937655 HudsonPrivateSecurityRealm now extends AbstractPasswordBasedSecurityRealm, as it should be.
Historically, AbstractPasswordBasedSecurityRealm came later so this wasn't done until now. This reduces the code bloat.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28501 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 22:44:07 +00:00
kohsuke 957754803b [FIXED HUDSON-5899] in 1.351.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28500 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 20:33:08 +00:00
kohsuke e57c07c9b5 Fixed a dead lock by using copy-on-write. Dead lock threads as follows:
"Handling GET /job/jck7-projectcoin/ws/ : btpool0-4552" prio=3 tid=0x0a6d9400 nid=0x197c1 waiting for monitor entry 
[0x2e90f000..0x2e911b60]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at java.util.Vector.toArray(Vector.java:643)
        - waiting to lock <0x3d840e08> (a java.util.Vector)
        at java.util.Vector.addAll(Vector.java:830)
        - locked <0x833173e8> (a java.util.Vector)
        at hudson.model.AbstractProject.getActions(AbstractProject.java:863)
        - locked <0x3d7e2d00> (a hudson.model.FreeStyleProject)
        at sun.reflect.GeneratedMethodAccessor253.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
        at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
        at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)

----------------------

"Handling POST /job/jck7-projectcoin/configSubmit : btpool0-4531" prio=3 tid=0x09da7800 nid=0x195b4 waiting for moni
tor entry [0x2ea58000..0x2ea59960]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at hudson.model.AbstractProject.getTriggers(AbstractProject.java:1239)
        - waiting to lock <0x3d7e2d00> (a hudson.model.FreeStyleProject)
        at hudson.model.Project.updateTransientActions(Project.java:212)
        - locked <0x3d840e08> (a java.util.Vector)
        at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:549)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:169)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101)
        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:74)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28492 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 17:48:13 +00:00
jglick cf3ea3cf5c Fixing raw type / unchecked warnings.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28489 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 14:44:33 +00:00
kohsuke 02eb4346bc fixed a test failure in EnableJobCommandTest
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28480 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 02:32:17 +00:00
kohsuke 1eb72ace8d On RPM/DEB/etc installation, don't offer the self upgrade. It should be done by the native package manager.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28479 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 02:30:10 +00:00
kohsuke 5b437679a1 I think this is causing the EnableJobCommandTest to fail. Not sure why it started failing, though.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28476 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 02:12:17 +00:00
kohsuke 09dbd2745b Resurrecting the original fix for HUDSON-5756, as I'm still worried that bugparade 6933067 is related to some sort of the HotSpot optimization.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28474 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 01:43:22 +00:00
kohsuke 201dbd597e [FIXED HUDSON-5780] in 1.350
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28473 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 00:51:03 +00:00
mindless ba37235620 fix 404 from link in top nav
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28472 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 00:22:06 +00:00
abayer 384fb1cba0 [HUDSON-5827, HUDSON-5756] Whoops - missed something I had intended.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28471 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-10 00:16:56 +00:00
abayer 74e9637ed7 [HUDSON-5827, HUDSON-5756] This approach fixes both bugs in one fell swoop
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28470 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-09 22:57:02 +00:00
mindless bc62545c33 just use LOGGER instead of local logger var
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28442 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-09 02:12:50 +00:00
kohsuke 765231cc57 added a test to make sure console annotation works as expected in the polling log.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28437 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-09 01:18:56 +00:00
kohsuke 3b480cfb65 Added consle annotation support to SCM polling logs.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28435 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-09 00:59:18 +00:00
kohsuke 00f694c595 forgot a pre tag
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28433 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-09 00:54:56 +00:00
kohsuke 7194708e5b using AnnotatedLargeText in more places
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28432 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-09 00:45:24 +00:00
kohsuke dacc627ba9 fixed StringIndexOutOfBoundsException
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28425 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-08 23:58:18 +00:00
kohsuke f77281af24 [FIXED HUDSON-5756] in 1.350 by introducing a pointless function to work around what appears to be a HotSpot problem.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28424 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-08 23:46:14 +00:00
kohsuke f7199479dd fixed regressions caused by my previous change to the toString() method.
We need two versions of escape, depending on whether the text is being injected into <PRE> or other normal HTML tags.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28422 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-08 21:55:40 +00:00
kohsuke 211f6b5605 [FIXED HUDSON-5852] '&lt;' and '&amp;' in the console output was not escaped since 1.349
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28418 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-08 20:51:34 +00:00
mindless e1d265bbdb i18n and grammar fix for one polling msg
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28404 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-08 19:38:01 +00:00
kohsuke 2488995d83 Merged revisions 28303,28305-28306,28308,28315 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc

........
  r28303 | kohsuke | 2010-03-05 18:05:22 -0800 (Fri, 05 Mar 2010) | 1 line
  
  version number isn't always parseable
........
  r28305 | kohsuke | 2010-03-05 18:55:21 -0800 (Fri, 05 Mar 2010) | 1 line
  
  fixed a test failure
........
  r28306 | kohsuke | 2010-03-05 19:21:37 -0800 (Fri, 05 Mar 2010) | 1 line
  
  [maven-release-plugin] prepare release hudson-1_349
........
  r28308 | kohsuke | 2010-03-05 19:21:58 -0800 (Fri, 05 Mar 2010) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........
  r28315 | kohsuke | 2010-03-05 20:04:32 -0800 (Fri, 05 Mar 2010) | 1 line
  
  updated changelog as a part of the release
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28403 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-08 19:33:00 +00:00
manuel_carrasco bddd6230ad Spanish translation keys
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28367 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-07 16:41:21 +00:00
manuel_carrasco adcf9e4523 update Spanish translations
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28349 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-07 05:47:14 +00:00
manuel_carrasco 5dbc86d111 update Spanish translations
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28348 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-07 05:46:50 +00:00
mindless 5cb76574f4 Refactor ComboBox to use CSS class instead of ID to identify the form element,
and initialize via hudson-behavior rules.  Now f:editableComboBox works in
repeatable content such as a build step (or any f:hetero-list or f:repeatable).
createComboBox still accepts an ID parameter for compatibility, but this form
is now deprecated.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28338 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-06 21:52:00 +00:00
mindless 04ef6745b9 Update to latest stapler, which has:
r1431 | kohsuke:
Fixed the implementation of the <st:once> so that it uses location information for uniqueness check.
The previous implementation depended on the identity of Script, which doesn't work in the development mode where script is constantly reloaded.
r1432 | mindless:
Implement new XMLOutputFactory added to jelly, so TagScript.getBodyText()
will use HTMLWriter when appropriate instead of always using standard XMLOuput.
This avoids <j:set var="..">..content..</j:set> using a short tag for <textarea/>,
for example.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28317 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-06 04:13:16 +00:00
mindless 3d3274e4be I hit UnsatisfiedLinkError loading jna on mac because my tmp dir happened
to have + chars and they got incorrectly translated to spaces.
Bumping up to jna 3.2.4 which has fixed this problem.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28311 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-06 03:42:40 +00:00
kohsuke 1d0c8d5ea8 [FIXED HUDSON-3796] implemented an extensible authentication scheme for CLI clients.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28296 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-05 23:13:27 +00:00
abayer 9ff393a368 [FIXED HUDSON-834] Added advanced option to delete artifacts without deleting the rest of the build
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28293 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-05 20:46:11 +00:00
kohsuke 6bd56e9a9c notification emails shouldn't contain embedded console notes
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28274 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-04 21:31:22 +00:00
kohsuke 9adb62aede typo
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28265 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-04 19:19:38 +00:00
abayer 1f00f6cea0 Changed FileSystemProvisioner.snapshot to take a glob argument
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28263 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-04 18:30:32 +00:00
mindless ad80923f7d Update uses of deprecated APIs:
View.LIST -> View.all(), UserProperties.LIST -> UserProperty.all()
Also removed comment about needing a new permission in User/configure,
as the User ACL grants admin permission on a user's own User object.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28261 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-04 16:58:33 +00:00
mindless f58992c4c3 Update use of deprecated API: Items.LIST -> Items.all()
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28260 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-04 16:41:57 +00:00
kohsuke acb3272c8b Fixed a bug that can cause 404 in the form validation check. Contextual ancestor portion shouldn't be cached.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28217 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-03 23:57:44 +00:00
kohsuke f4d4639b00 bug fix
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28211 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-03 19:52:07 +00:00
kohsuke 7ae6d5d1ba forgot to rename this.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28210 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-03 19:43:32 +00:00
kohsuke 6312340189 Remote build result submission shouldn't hang forever even if Hudson goes down.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28175 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-03 16:49:20 +00:00
kohsuke c6acb5b8d5 [FIXED HUDSON-2137]
Merged revisions 27137,27564,27566-27567,27578,27586,27599,27603,27606-27609,27611,27616,27626-27632,27640,27654-27656,27687,27701,27801,27816,27819,27843-27845,28087,28158-28161 via svnmerge from 
https://www.dev.java.net/svn/hudson/branches/HUDSON-2137

........
  r27137 | kohsuke | 2010-02-08 08:46:16 -0800 (Mon, 08 Feb 2010) | 1 line
  
  experimenting with abstractions
........
  r27564 | kohsuke | 2010-02-16 07:58:26 -0800 (Tue, 16 Feb 2010) | 1 line
  
  bundling makes it easier for caller to handle ConsoleAnnotator
........
  r27566 | kohsuke | 2010-02-16 08:49:48 -0800 (Tue, 16 Feb 2010) | 1 line
  
  this should work with Runs, not AbstractBuilds
........
  r27567 | kohsuke | 2010-02-16 08:54:06 -0800 (Tue, 16 Feb 2010) | 1 line
  
  simplified
........
  r27578 | kohsuke | 2010-02-16 12:26:11 -0800 (Tue, 16 Feb 2010) | 1 line
  
  still a work in progress, but committing once to pull in trunk changes
........
  r27586 | kohsuke | 2010-02-16 14:35:37 -0800 (Tue, 16 Feb 2010) | 1 line
  
  making more progress
........
  r27599 | kohsuke | 2010-02-16 19:22:01 -0800 (Tue, 16 Feb 2010) | 2 lines
  
  hooking up the side that writes annotations.
  still a work in progress.
........
  r27603 | kohsuke | 2010-02-16 23:43:35 -0800 (Tue, 16 Feb 2010) | 3 lines
  
  what appears to me as the first cut of hooking up the reader side of the annotations.
  
  I haven't even run it yet --- this just passed the compilation, and I'm calling it a day.
........
  r27606 | kohsuke | 2010-02-17 09:15:16 -0800 (Wed, 17 Feb 2010) | 1 line
  
  demo instance hook up
........
  r27607 | kohsuke | 2010-02-17 11:27:02 -0800 (Wed, 17 Feb 2010) | 3 lines
  
  one more utility method.
  
  I never understood what the point of letting the skip method skip less.
........
  r27608 | kohsuke | 2010-02-17 11:56:23 -0800 (Wed, 17 Feb 2010) | 3 lines
  
  - moved LargeText subtype to its own class
  - skipping log output was done incorrectly --- it had to skip N bytes where it was skipping N chars.
  - hooked up console annotations for completed builds.
........
  r27609 | kohsuke | 2010-02-17 12:01:46 -0800 (Wed, 17 Feb 2010) | 1 line
  
  copyright header
........
  r27611 | kohsuke | 2010-02-17 13:18:10 -0800 (Wed, 17 Feb 2010) | 1 line
  
  introduced a mechanism to register extension during an unit test.
........
  r27616 | kohsuke | 2010-02-17 13:38:12 -0800 (Wed, 17 Feb 2010) | 1 line
  
  test case for console annotations
........
  r27626 | kohsuke | 2010-02-17 15:23:06 -0800 (Wed, 17 Feb 2010) | 1 line
  
  removing test ConsoleAnnotator as I write tests as tests
........
  r27627 | kohsuke | 2010-02-17 16:06:13 -0800 (Wed, 17 Feb 2010) | 1 line
  
  added a multi-phase cooperative locking mechanism useful during the debugging
........
  r27628 | kohsuke | 2010-02-17 16:06:41 -0800 (Wed, 17 Feb 2010) | 1 line
  
  testing progressive log annotation
........
  r27629 | kohsuke | 2010-02-17 16:20:32 -0800 (Wed, 17 Feb 2010) | 1 line
  
  adding a test for ConsoleAnnotation that's explicitly placed.
........
  r27630 | kohsuke | 2010-02-17 16:23:02 -0800 (Wed, 17 Feb 2010) | 1 line
  
  removing test ConsoleAnnotation as I write tests as tests
........
  r27631 | kohsuke | 2010-02-17 16:28:50 -0800 (Wed, 17 Feb 2010) | 1 line
  
  tweaking the abstraction a bit.
........
  r27632 | kohsuke | 2010-02-17 16:44:21 -0800 (Wed, 17 Feb 2010) | 1 line
  
  parameterized the context type so that this can be used in places other than the build console output, such as polling logs, slave logs, and so on.
........
  r27640 | kohsuke | 2010-02-17 17:27:52 -0800 (Wed, 17 Feb 2010) | 1 line
  
  bug fix
........
  r27654 | kohsuke | 2010-02-17 22:53:04 -0800 (Wed, 17 Feb 2010) | 1 line
  
  doc improvement
........
  r27655 | kohsuke | 2010-02-17 22:53:59 -0800 (Wed, 17 Feb 2010) | 1 line
  
  doc improvement
........
  r27656 | kohsuke | 2010-02-17 23:10:42 -0800 (Wed, 17 Feb 2010) | 1 line
  
  test case for adjacent tags
........
  r27687 | kohsuke | 2010-02-19 14:39:21 -0800 (Fri, 19 Feb 2010) | 1 line
  
  introduced a facotry and descriptor. This allows them to define configuration pages, allow users to disable/enable them, plus define custom behaviors.
........
  r27701 | kohsuke | 2010-02-19 18:23:52 -0800 (Fri, 19 Feb 2010) | 1 line
  
  defining a mechanism for ConsoleAnnotatorFactory and ConsoleAnnotationDescriptor to define script.js and have them imported into the console output page
........
  r27801 | kohsuke | 2010-02-22 11:59:16 -0800 (Mon, 22 Feb 2010) | 1 line
  
  now embedding annotations inside the console output log file.
........
  r27816 | kohsuke | 2010-02-22 15:45:04 -0800 (Mon, 22 Feb 2010) | 1 line
  
  introduced a convenience method for unit tests
........
  r27819 | kohsuke | 2010-02-22 17:37:05 -0800 (Mon, 22 Feb 2010) | 5 lines
  
  As an example of using embedded console annotations, implementing Ant target invocation outlines.
  
  It might be better to make the concept of outline more generally reusable, so that different kinds of outlines can be placed into the same container element for a single hierarchical representation.
  
  Still a work in progress.
........
  r27843 | kohsuke | 2010-02-23 16:12:13 -0800 (Tue, 23 Feb 2010) | 1 line
  
  for now, disable this for production usage, until I work out a better UI.
........
  r27844 | kohsuke | 2010-02-23 19:08:00 -0800 (Tue, 23 Feb 2010) | 1 line
  
  started working on annotating exception.
........
  r27845 | kohsuke | 2010-02-23 19:08:33 -0800 (Tue, 23 Feb 2010) | 1 line
  
  more TODOs for myself
........
  r28087 | kohsuke | 2010-03-01 10:03:55 -0800 (Mon, 01 Mar 2010) | 1 line
  
  formatting changes
........
  r28158 | kohsuke | 2010-03-02 17:00:00 -0800 (Tue, 02 Mar 2010) | 1 line
  
  ConsoleAnnotation and ConsoleAnnotator are too confusing.
........
  r28159 | kohsuke | 2010-03-02 17:02:02 -0800 (Tue, 02 Mar 2010) | 1 line
  
  doc improvement
........
  r28160 | kohsuke | 2010-03-02 17:05:14 -0800 (Tue, 02 Mar 2010) | 1 line
  
  more doc improvements.
........
  r28161 | kohsuke | 2010-03-02 17:11:59 -0800 (Tue, 02 Mar 2010) | 1 line
  
  more doc improvement
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28173 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-03 15:37:55 +00:00
mindless e325bee550 Add OldDataMonitor reporting for deprecated fields in ToolInstallation subclasses.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28165 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-03 03:52:00 +00:00
mindless 8359f5d8be Add back readResolve() that I removed in r28147 (branch r27997)..
in the other removed cases readResolve was redundant with the XStream Converter,
but in this case it is needed when deserializing a Result sent from a slave node
(XStream is not used in remoting).


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28157 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-03 00:42:32 +00:00
mindless 9fb65a9910 fix: skip update from SaveableListener during doUpgrade/doDiscard
to avoid ConcurrentModificationException.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28155 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-02 23:20:13 +00:00
mindless 07f0405f2a Merge r27590:28071 and r28073 from branches/old-data-monitor into trunk.
--Merged-in:------------------------------------------------------------
r27601 | mindless | 2010-02-16 20:21:50 -0800 (Tue, 16 Feb 2010) | 8 lines

Add OldDataMonitor for tracking loaded data that contained old deprecated data,
the Saveable objects that can be save()'ed to persist the data in its new format,
and the Hudson releases where these structure changes took place.
A "Manage Old Data" form explains how Hudson deals with migrating old data
(keeping downgrades possible), lists the old data, and allows upgrade of the data
files with changes up through a selected Hudson release.
Added calls of OldDataMonitor.report() for six old deprecated fields/data changes.

--Merged-in:------------------------------------------------------------
r27683 | mindless | 2010-02-19 11:43:40 -0800 (Fri, 19 Feb 2010) | 5 lines

Expand OldDataMonitor to also track unreadable data found while loading.
These are reported from util.RobustReflectionConverter and RobustCollectionConverter.
"Manage Old Data" screen has additional text about unreadable data, and a form
to resave those files which will discard that data.

--Merged-in:------------------------------------------------------------
r27715 | mindless | 2010-02-20 08:56:51 -0800 (Sat, 20 Feb 2010) | 3 lines

Add Saveable/Item/Run listeners to remove entries tracked by OldDataMonitor
if they are resaved or deleted.

--Merged-in:------------------------------------------------------------
r27970 | mindless | 2010-02-26 09:02:43 -0800 (Fri, 26 Feb 2010) | 6 lines

Add OldDataMonitor reporting for deprecated fields in Mailer and HudsonPrivateSecurityRealm.
Includes fix in RobustReflectionConverter to report against outermost Saveable object
(User object can contain MyViewsProperty which is also Saveable).
Also added XStream2.PassthruConverter which is used to report old data during
unmarshalling when the containing Saveable is not known.

--Merged-in:------------------------------------------------------------
r27982 | mindless | 2010-02-26 11:35:41 -0800 (Fri, 26 Feb 2010) | 3 lines

Fix to show username for User objects instead of "fullDisplayName".
Also increased threshold for possible compatibility removal from 100 to 150 releases.

--Merged-in:------------------------------------------------------------
r27983 | mindless | 2010-02-26 11:43:06 -0800 (Fri, 26 Feb 2010) | 5 lines

Add OldDataMonitor reporting for ParametersAction.build, CauseAction.cause
and UpstreamCause.upstreamCause.
Note: these will make the list of objects on the OldData/manage screen very long
for Hudson installs with lots of builds run on Hudson 1.283 to 1.287.

--Merged-in:------------------------------------------------------------
r27987 | mindless | 2010-02-26 12:33:59 -0800 (Fri, 26 Feb 2010) | 4 lines

Refactored XStream2.PassthruConverter so uses do not need to be registered with
the XStream2 instance, but work for all XStream2 (using ConverterImpl subclass
found by AssociatedConverterImpl).

--Merged-in:------------------------------------------------------------
r27989 | mindless | 2010-02-26 13:38:35 -0800 (Fri, 26 Feb 2010) | 3 lines

Add a cache of ConverterImpl instances in AssociatedConverterImpl to avoid
repeated work in findConverter every time such an object is marshalled/unmarshalled.

--Merged-in:------------------------------------------------------------
r27996 | mindless | 2010-02-26 16:47:19 -0800 (Fri, 26 Feb 2010) | 2 lines

Add OldDataMonitor reporting for HealthReport.description

--Merged-in:------------------------------------------------------------
r27997 | mindless | 2010-02-26 16:49:28 -0800 (Fri, 26 Feb 2010) | 5 lines

Remove readResolve() in 3 classes where a Converter now does that work.
In GlobalMatrixAuthorizationStrategy and AuthorizationMatrixProperty also
add unreadable-data reporting when unable to parse a permission type,
and report when Item.READ permission is added for migration from < 1.301

--Merged-in:------------------------------------------------------------
r28073 | mindless | 2010-02-28 23:18:06 -0800 (Sun, 28 Feb 2010) | 5 lines

Report any old XStream 1.1.x serialized (files from Hudson before 1.106)
to OldDataMonitor, using a ThreadLocal since the unmarshal context is not
available in the mapper.  These use "-" to encode "$" in a class name
instead of "_-" used now.

+-End-of-merged-revisions----------------------------------------------+



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28147 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-02 21:19:59 +00:00
kohsuke 773d107871 Added a mechanism to bundle <tt>init.groovy</tt> inside the war for OEM.
(<a href="http://n4.nabble.com/preconfigured-hudson-war-tp1575216p1575216.html">report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28144 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-02 19:55:04 +00:00
kohsuke 9d63c0223f normalization needs to avoid producing empty string.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28142 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-02 19:18:28 +00:00