Commit Graph
57 Commits
Author SHA1 Message Date
Kohsuke Kawaguchi 29f6a5dd01 [FIXED JENKINS-3070]
Added uninstaller that removes *.jpi.
2012-10-09 16:08:21 -07:00
Kohsuke Kawaguchi 76832379d8 exposed data about installed plugins, installable plugins, update center jobs, etc., to the REST API 2012-05-21 16:59:24 -07:00
imod aad6e4c66c only deactivate plugins with cycle dependencies instead of failing to launch Jenkins 2012-02-19 18:29:53 +01:00
imod 386618dca4 support new JenkinsPlugin type (jpi) 2012-01-03 11:47:37 -08:00
Kohsuke Kawaguchi c6d81ef2e2 hooking up the dynamic loading logic into the UI 2011-11-15 23:09:47 -08:00
Kohsuke Kawaguchi 7850d422af this is a meta variable 2011-08-09 11:14:48 -07:00
Nigel Magnay 5679d019ec Move hudson.model.Jenkins to be jenkins.model.Jenkins - part II
Just import changes, from hudson.model.Jenkins -> jenkins.model.Jenkins,
and Javadoc comments.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
2011-05-29 11:06:28 +01:00
Nigel Magnay 70c1065814 Stage 1 : Create hudson.model.Jenkins, make Hudson derive from Jenkins.
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
2011-05-29 11:00:58 +01:00
Kohsuke Kawaguchi 0ae70779be Generate 3rd party dependency license report and make it visible from
the UI.

Also, for the core build, require that all the dependency licenses are
available.
2011-04-15 14:55:43 -07:00
Dave Brosius 5571e430d1 remove wasteful duplicate method calls 2011-02-05 19:16:24 -05:00
alanharder b3c661d59b some hudson.war/jenkins.war changes 2011-02-03 09:41:00 -08:00
kohsuke 8ec3054c30 Added downgrade support for the core and plugins.
--------
Merged revisions 32975,33588,33697,34342 via svnmerge from 
https://www.dev.java.net/svn/hudson/branches/downgrade

........
  r32975 | kohsuke | 2010-07-16 21:27:59 +0200 (Fri, 16 Jul 2010) | 1 line
  
  committed my partially modified version
........
  r33588 | dienomight | 2010-08-05 09:42:36 +0200 (Thu, 05 Aug 2010) | 13 lines
  
  Added getBackupVersion (UpdateCenter)
  downgrade button now shows version of backup war file
  
  Added HudsonDowngradeJob (UpdateCenter)
  downgrading process is works now as HudsonUpgradeJob
  
  Changed rewriteHudsonWar (Lifecycle) 
  backup file is deleted when downgrading
  
  hudson/model/Hudson/downgrade_success.jelly is no longer necessary
  
  Changed rewriteHudsonWar(WindowsServiceLifecycle)
  hudson run as windows service creates backup during upgrading
........
  r33697 | dienomight | 2010-08-11 17:09:48 +0200 (Wed, 11 Aug 2010) | 8 lines
  
  committed changes:
  "plugins downgrade functionality"
  added: 
  * PluginDowngradeJob in UpdateCenter
  * getCanDowngrade & getBackupPath & getBackupVersion in PluginWrapper
  * additional "previous version" column in installed.jelly (PluginManager) with downgrade button (when it's possible to downgrade)
  * doDowngrade in PluginManager
  * deployBackup in UpdateSite
........
  r34342 | dienomight | 2010-09-03 09:52:13 +0200 (Fri, 03 Sep 2010) | 12 lines
  
  Code improvements: 
  jelly files:
  *I put text inside ${%} so it would be available for translation.
  UpdateCenter: 
  *changed getCanDowngrade to isDowngradable
  *getBackupVersion use JarFile class to get version of .war backup
  PluginWrapper:
  *changed getBackupPath to getBackupFile
  *getBackupVersion use JarFile class to get version of plugin backup
  PluginManager:
  *changed condition in doDowngrade method
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34543 71c3de6d-444a-0410-be80-ed276b4c234a
2010-09-08 05:36:29 +00:00
kohsuke db05699410 expose unpinning to the web UI.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34045 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-23 19:05:09 +00:00
mindless de0cd39fa6 [FIXED HUDSON-6966] in getIndexPage(), check that result has this plugin's artifactId
in it, in case plugin has dependencies but is missing its own index.jelly.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33311 71c3de6d-444a-0410-be80-ed276b4c234a
2010-07-28 21:44:30 +00:00
kohsuke 89c437c877 allowing PluginStrategy to create subtypes.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32980 71c3de6d-444a-0410-be80-ed276b4c234a
2010-07-16 23:17:09 +00:00
mindless 81b3603c13 [FIXED HUDSON-6966] Plugins with dependencies show wrong description on
installed plugins page.  DependencyClassLoader checks dependencies before
this plugin, so wrong index.jelly is found for plugins with dependencies.
Added implementation of findResources in DependencyClassLoader, and use
getResources to find the right index.jelly in PluginWrapper.getIndexPage().


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32876 71c3de6d-444a-0410-be80-ed276b4c234a
2010-07-14 16:32:26 +00:00
mindless fd0e34a13f small PluginManager UI updates
- click category heading on Available tab to show/hide plugins in that category
- add initial sort for plugins on Installed tab
- no mouseover bgcolor for Advanced tab


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31819 71c3de6d-444a-0410-be80-ed276b4c234a
2010-06-07 01:11:31 +00:00
kohsuke 6253fb1b24 Test performance improvement by allowing multiple Hudsons to reuse classloaders.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30070 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-14 22:55:18 +00:00
kohsuke 26f290b5b7 fixed a compilation problem. I think this reads better than a two-arg "isNewerThan"
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24466 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-08 00:09:45 +00:00
kohsuke fd13eee6d5 Merged revisions 23666-23667,23670,23711,23782-23785,23788,23809-23810,23817,23859,23870,23879,23899-23904,23906-23907,23909,23913 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/managed-startup

........
  r23666 | kohsuke | 2009-11-11 15:56:46 -0800 (Wed, 11 Nov 2009) | 1 line
  
  Reworked the initialization logic
........
  r23667 | kohsuke | 2009-11-11 16:01:56 -0800 (Wed, 11 Nov 2009) | 1 line
  
  fixed a failing test
........
  r23670 | kohsuke | 2009-11-11 16:42:32 -0800 (Wed, 11 Nov 2009) | 1 line
  
  use a non-snapshot
........
  r23711 | kohsuke | 2009-11-13 14:27:28 -0800 (Fri, 13 Nov 2009) | 1 line
  
  Session -> Reactor
........
  r23782 | kohsuke | 2009-11-17 10:35:14 -0800 (Tue, 17 Nov 2009) | 1 line
  
  Poorman's clone of JDK6 ServiceLoader.
........
  r23783 | kohsuke | 2009-11-17 10:56:25 -0800 (Tue, 17 Nov 2009) | 1 line
  
  Integrated the fatal support so that all errors are sent to the listener.
........
  r23784 | kohsuke | 2009-11-17 10:58:07 -0800 (Tue, 17 Nov 2009) | 1 line
  
  with the new reactor initialization, things are getting too verbose
........
  r23785 | kohsuke | 2009-11-17 11:18:45 -0800 (Tue, 17 Nov 2009) | 1 line
  
  failing to load jobs are non-fatal, too
........
  r23788 | kohsuke | 2009-11-17 13:18:59 -0800 (Tue, 17 Nov 2009) | 1 line
  
  logging the exception properly
........
  r23809 | kohsuke | 2009-11-17 18:45:47 -0800 (Tue, 17 Nov 2009) | 1 line
  
  releasing 1.1 as milestone
........
  r23810 | kohsuke | 2009-11-17 18:47:37 -0800 (Tue, 17 Nov 2009) | 2 lines
  
  - use a better idiom for building a sequence
  - use null display name to signify internal book-keeping tasks that's not worth displaying
........
  r23817 | kohsuke | 2009-11-18 07:54:17 -0800 (Wed, 18 Nov 2009) | 1 line
  
  removed accidental JDK6 dependency.
........
  r23859 | kohsuke | 2009-11-19 11:03:28 -0800 (Thu, 19 Nov 2009) | 1 line
  
  introducing the strategy pattern to hook into key decision making points during the start up
........
  r23870 | kohsuke | 2009-11-19 14:33:07 -0800 (Thu, 19 Nov 2009) | 1 line
  
  bug fix. These steps add additional tasks to the reactor, so they need to also prevent future milestones from getting attained.
........
  r23879 | kohsuke | 2009-11-19 16:54:59 -0800 (Thu, 19 Nov 2009) | 1 line
  
  moved the logic to the strategy.
........
  r23899 | kohsuke | 2009-11-20 09:32:13 -0800 (Fri, 20 Nov 2009) | 1 line
  
  handle duplicate plugins better
........
  r23900 | kohsuke | 2009-11-20 10:06:42 -0800 (Fri, 20 Nov 2009) | 1 line
  
  support pre-exploded plugin
........
  r23901 | kohsuke | 2009-11-20 10:49:04 -0800 (Fri, 20 Nov 2009) | 1 line
  
  making it a subtype
........
  r23902 | kohsuke | 2009-11-20 10:54:42 -0800 (Fri, 20 Nov 2009) | 1 line
  
  allow InitStrategy to skip some tasks
........
  r23903 | kohsuke | 2009-11-20 11:03:38 -0800 (Fri, 20 Nov 2009) | 1 line
  
  doc improvement.
........
  r23904 | kohsuke | 2009-11-20 11:03:49 -0800 (Fri, 20 Nov 2009) | 1 line
  
  no need to throw exceptions
........
  r23906 | kohsuke | 2009-11-20 11:17:34 -0800 (Fri, 20 Nov 2009) | 1 line
  
  debug switch to disable the automatic launch of slaves
........
  r23907 | kohsuke | 2009-11-20 11:25:15 -0800 (Fri, 20 Nov 2009) | 1 line
  
  added a magic object for cancelling all saves
........
  r23909 | kohsuke | 2009-11-20 11:29:53 -0800 (Fri, 20 Nov 2009) | 1 line
  
  moving initialization up
........
  r23913 | kohsuke | 2009-11-20 13:32:08 -0800 (Fri, 20 Nov 2009) | 1 line
  
  seeing heap space problem during tests
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23992 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-23 19:33:33 +00:00
kohsuke 720be7d7a1 Merged revisions 23183,23185,23245,23256,23266,23279-23284,23286 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/multiple-update-sources

........
  r23183 | abayer | 2009-10-25 11:53:17 -0700 (Sun, 25 Oct 2009) | 1 line
  
  First chunk of work towards supporting multiple update centers - infrastructure in place for it, and default update center treated as only one of multiple - have to use slightly modified update-center.json though
........
  r23185 | abayer | 2009-10-25 12:25:49 -0700 (Sun, 25 Oct 2009) | 1 line
  
  a number of tweaks - among other things, now works properly with additional update centers defined in hudson.model.UpdateCenter.xml - try using http://andrewbayer.com/images/hello-world/helloWorld-update-center.json as second update center
........
  r23245 | abayer | 2009-10-27 13:45:25 -0700 (Tue, 27 Oct 2009) | 1 line
  
  Modified to support existing default update-center.json
........
  r23256 | kohsuke | 2009-10-27 18:30:15 -0700 (Tue, 27 Oct 2009) | 7 lines
  
  - moved data binding of update-center.json to UpdateSource.
  - moved some of the UpdateSource property into JSON, to improve the user experience when adding an update source.
    the user should just type in one URL, and everything else should happen automatically.
  - it doesn't make sense for UpdateSource to rely on UpdateCenterConfiguration, since behaviors cannot be
    modified per UpdateSource basis. Instead, leaving it in UpdateCenter allows us to maintain backward compatible
    behaviors with the existing custom UpdateCenterConfiguration implementation.
........
  r23266 | kohsuke | 2009-10-27 19:29:24 -0700 (Tue, 27 Oct 2009) | 1 line
  
  serve id inside JSON.
........
  r23279 | kohsuke | 2009-10-28 10:44:00 -0700 (Wed, 28 Oct 2009) | 1 line
  
  Do not special-case "default" ID. Receive hudson.war updates from wherever that provides one.
........
  r23280 | kohsuke | 2009-10-28 10:50:57 -0700 (Wed, 28 Oct 2009) | 1 line
  
  formatting change.
........
  r23281 | kohsuke | 2009-10-28 11:30:40 -0700 (Wed, 28 Oct 2009) | 1 line
  
  typo
........
  r23282 | kohsuke | 2009-10-28 11:45:06 -0700 (Wed, 28 Oct 2009) | 2 lines
  
  - added the UI to remove sites.
  - persistence of UpdateSource happens more automatically now.
........
  r23283 | kohsuke | 2009-10-28 11:50:04 -0700 (Wed, 28 Oct 2009) | 1 line
  
  UpdateSource -> UpdateSite to align terminology with Eclipse.
........
  r23284 | kohsuke | 2009-10-28 11:55:03 -0700 (Wed, 28 Oct 2009) | 5 lines
  
  Actually, for now, just having a programmatic modification to UpdateSite would satisfy the primary use case.
  
  And I'd like to upgrade YUI to a more recent version so that we can use its DataTable for UI. Plus the single update center model encourages the community to bring the code into the Hudson project, which is something we'd like to keep.
  
  So all in all, I'm postponing the UI work.
........
  r23286 | kohsuke | 2009-10-28 13:07:19 -0700 (Wed, 28 Oct 2009) | 1 line
  
  Renaming and bug fixes.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23326 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 21:27:46 +00:00
kohsuke 516866e06d adding the notion that a plugin can be pinned to avoid overwritten by a bundled plugin.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21977 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-21 23:29:38 +00:00
mindless 9fed9823f5 Add @Override annotations, remove unused imports,
add some copyright headers, some tab->ws


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21654 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 18:08:34 +00:00
kohsuke a31176489c Using AntClassLoader with Closeable so that we can predictably release jar files opened by URLClassLoader
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19472 71c3de6d-444a-0410-be80-ed276b4c234a
2009-07-07 18:35:32 +00:00
dty bfd251bce6 Fixed copyright attributions. The copyrights belong to my employer, not me.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16780 71c3de6d-444a-0410-be80-ed276b4c234a
2009-04-01 20:42:50 +00:00
kohsuke 29697efdfa Plugin is now optional
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15898 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-28 20:25:44 +00:00
kohsuke 616036a17a Plugin manager now honors the plugin URL from inside .hpi, not just from the update center.
(<a href="http://www.nabble.com/Plugin-deployment-issues-td21982824.html">report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15281 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-13 00:12:47 +00:00
kohsuke 1a1d0d74d5 license header clean up
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15081 71c3de6d-444a-0410-be80-ed276b4c234a
2009-02-06 20:05:24 +00:00
dty 434a10915f PluginWrapper.getLongName() was using the wrong property name to get the plugin
long name from the manifest file. Change "Long-PluginName" to "Long-Name" to
match manifest contents.



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13658 71c3de6d-444a-0410-be80-ed276b4c234a
2008-12-16 22:53:21 +00:00
huybrechts 39a667df80 extracted a PluginStrategy from PluginManager and PluginWrapper
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@12443 71c3de6d-444a-0410-be80-ed276b4c234a
2008-10-01 19:49:37 +00:00
kohsuke 1e11a2fd39 this is more OO.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11395 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-11 23:04:18 +00:00
kohsuke 1c698565fa fixed a stream leak
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11275 71c3de6d-444a-0410-be80-ed276b4c234a
2008-08-06 17:04:15 +00:00
kohsuke ebdd1948cf applied a patch from Adam, with a little modification.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10860 71c3de6d-444a-0410-be80-ed276b4c234a
2008-07-17 04:31:50 +00:00
kohsuke 7b3de6aa70 doc update
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10853 71c3de6d-444a-0410-be80-ed276b4c234a
2008-07-16 19:06:25 +00:00
kohsuke cb1bb66daa Making more progress on the update center implementation
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9883 71c3de6d-444a-0410-be80-ed276b4c234a
2008-06-05 23:02:03 +00:00
kohsuke 2ea21f6b0a joing method is already available in Util (although I agree that it's not really discoverable)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8800 71c3de6d-444a-0410-be80-ed276b4c234a
2008-04-23 15:20:19 +00:00
redsolo 13fd9ebd21 Moved dependency checks to loadPluginDependencies() and improved exception to include all missing dependencies.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8799 71c3de6d-444a-0410-be80-ed276b4c234a
2008-04-23 13:05:45 +00:00
redsolo 70f4a28563 Fixed <optional/> handling in dependency tags. Optional dependencies are appended with "resolution:=optional".
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8794 71c3de6d-444a-0410-be80-ed276b4c234a
2008-04-22 22:17:15 +00:00
kohsuke 732bca61e0 [fixed] Hudson won't be confused by renamed plugins now (issue #794)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7966 71c3de6d-444a-0410-be80-ed276b4c234a
2008-03-22 19:55:20 +00:00
kohsuke 58479699f5 one word
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7958 71c3de6d-444a-0410-be80-ed276b4c234a
2008-03-22 19:36:14 +00:00
kohsuke 7b7be1e1ee replacing more adminCheck() by permission constants
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6351 71c3de6d-444a-0410-be80-ed276b4c234a
2007-12-19 07:06:20 +00:00
kohsuke 1ff064187b fixed a security hole.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3740 71c3de6d-444a-0410-be80-ed276b4c234a
2007-07-19 21:25:05 +00:00
kohsuke 3bfa8af569 working around a memory leak in commons-logging. And they don't even acknowledge that it's a bug. Sigh.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2868 71c3de6d-444a-0410-be80-ed276b4c234a
2007-04-06 14:20:13 +00:00
kohsuke 3738e82225 added error check.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2319 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-03 18:10:27 +00:00
kohsuke e4de4f5139 bug fix in loading dependency class.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2317 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-03 17:28:25 +00:00
kohsuke 75156c3e37 bug fix.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2315 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-03 17:02:37 +00:00
kohsuke b5733d63be modified to parse "Plugin-Dependencies" manifest entry.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2312 71c3de6d-444a-0410-be80-ed276b4c234a
2007-03-03 15:31:32 +00:00
kohsuke eb23404674 simplified.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1943 71c3de6d-444a-0410-be80-ed276b4c234a
2007-01-26 14:11:16 +00:00
kohsuke 436fd1f3bd improved robustness.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1941 71c3de6d-444a-0410-be80-ed276b4c234a
2007-01-26 13:59:41 +00:00
kohsuke bf63784c7e modified to display the plugin version number.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1939 71c3de6d-444a-0410-be80-ed276b4c234a
2007-01-26 13:55:26 +00:00