Kohsuke Kawaguchi
9f09e8ac59
[FIXED JENKINS-8892] set the classloader for GroovyShell
...
Otherwise plugin classes won't resolve.
2011-02-27 11:46:08 +09:00
Kohsuke Kawaguchi
2b59a93e3e
exposing more variables
2011-02-23 18:10:59 +09:00
Kohsuke Kawaguchi
11365c7eec
Exposed more variables.
2011-02-23 11:23:38 +09:00
Dave Brosius
bf7cbca22b
guard against npes
2011-02-05 18:59:54 -05:00
Dave Brosius
9e32311e2f
use %n for new lines in format strings
2011-02-05 18:39:54 -05:00
Kohsuke Kawaguchi
f08fd38a76
hudson-cli.jar to jenkins-cli.jar rename
2011-01-30 23:51:35 -08:00
Kohsuke Kawaguchi
3a1447ea9a
Updating the URL.
2011-01-30 23:44:52 -08:00
Kohsuke Kawaguchi
2f7fbafdd7
i18n.
...
Regrettably the CLI client and the CLI server are in the same package, and this doesn't work very well with i18n scheme as we end up having two classes of the same name (and one hides the other in the server.)
So I'm renaming the Messages class on the client, but not the classes itself for compatibility
2011-01-14 11:32:13 -08:00
Kohsuke Kawaguchi
1259aa9cf4
Improved the error diagnostics based on feedback.
...
See
http://groups.google.com/group/hudson-users/browse_frm/thread/4272c82edb5460b8
"Install-plugin CLI action doesn't work when an URL is specified as
SOURCE"
2011-01-14 11:14:08 -08:00
Kohsuke Kawaguchi
f2b62bc08b
exposing a few more objects that are likely useful.
2011-01-12 17:14:44 -08:00
Kohsuke Kawaguchi
a1fe8ccd81
added a convenience method
2011-01-12 17:10:29 -08:00
Kohsuke Kawaguchi
3154ccae85
these two parameters are required.
2011-01-06 13:07:51 -08:00
Tom Huybrechts
6aa6b171d6
SetBuildDescription command
2010-10-16 22:05:48 +02:00
mindless
99aaa67bec
[FIXED HUDSON-6628] There is some code duplication in main() methods between
...
CLICommand and the anonymous CLICommand subclass in CLIRegisterer.. the latter
was missing the loadStoredAuthentication call which enables CLI login command.
CLI login now works for CLI commands defined via @CLIMethod annotation.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34178 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-27 20:34:29 +00:00
mindless
d4c9e40b91
[SECURITY-5] Add several missing permission checks in CLI commands.
...
Current CLI is always available and most commands can be run by anonymous users.
Now only a short help message and the login command are available for anonymous
in a Hudson without anonymous read permission, and each individual command also
checks the appropriate permission for that command. Details:
* Vulnerable CLI commands now fixed:
build, clear-queue, copy-job, create-job, delete-builds, delete-job,
disable-job, enable-job, install-plugin, install-tool, keep-build,
mail, restart, safe-restart, set-build-result
* Broken CLI commands now fixed:
connect-node, delete-node, disconnect-node, offline-node, online-node
* Other vulnerable command (not CLI) now fixed: /gc (JVM garbage collect)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33626 71c3de6d-444a-0410-be80-ed276b4c234a
2010-08-08 05:29:34 +00:00
kohsuke
54f7372279
Added a CLI command that can be used from inside a build to set the build status.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32828 71c3de6d-444a-0410-be80-ed276b4c234a
2010-07-13 01:30:45 +00:00
kohsuke
dca3317d86
Added a mechanism to register CLI option handler as an extension point.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32827 71c3de6d-444a-0410-be80-ed276b4c234a
2010-07-13 01:29:15 +00:00
kohsuke
45721b0e99
Remember the current CLICommand that's being executed.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32817 71c3de6d-444a-0410-be80-ed276b4c234a
2010-07-12 23:50:27 +00:00
kohsuke
7bc7bbec83
Merged revisions 31912-31913 via svnmerge from
...
https://svn.dev.java.net/svn/hudson/branches/rc
........
r31912 | kohsuke | 2010-06-09 22:13:50 -0700 (Wed, 09 Jun 2010) | 1 line
fixed a test failure
........
r31913 | kohsuke | 2010-06-09 22:41:02 -0700 (Wed, 09 Jun 2010) | 1 line
fill in CLICommand basics
........
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31914 71c3de6d-444a-0410-be80-ed276b4c234a
2010-06-10 06:01:17 +00:00
kohsuke
6698aca4e7
[HUDSON-6587] rolling back rev.31878. I think a better fix, given the current existing code and method signatures, is to expose the transport level authentication in a bit more implicit way.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31900 71c3de6d-444a-0410-be80-ed276b4c234a
2010-06-10 02:21:28 +00:00
jpederzolli
a7a7ec8f5e
Issue: HUDSON-6587
...
restore container based SLI authentication
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31878 71c3de6d-444a-0410-be80-ed276b4c234a
2010-06-09 22:07:05 +00:00
kohsuke
23c6d4b3ca
simplified by using the reflection utility.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31000 71c3de6d-444a-0410-be80-ed276b4c234a
2010-05-13 05:28:43 +00:00
kohsuke
000a7c33b1
Extension points can be now sorted.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30071 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-15 00:24:55 +00:00
kohsuke
976028dd79
sort a list of commands.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28934 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-19 18:58:19 +00:00
kohsuke
01bc7dc23e
fixed NPE that breaks some tests
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28745 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-16 18:55:58 +00:00
kohsuke
bfb51af7e1
Added 'login' and 'logout' commands so that you don't have to specify a credential for individual CLI invocation.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28509 71c3de6d-444a-0410-be80-ed276b4c234a
2010-03-11 01:11:11 +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
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
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
kohsuke
19c57d03ac
doc improvement
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@26980 71c3de6d-444a-0410-be80-ed276b4c234a
2010-02-03 18:17:38 +00:00
kohsuke
5e00f2374f
Added a new CLI command to retrieve list of changes.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24895 71c3de6d-444a-0410-be80-ed276b4c234a
2009-12-24 02:16:06 +00:00
mindless
20688553cb
[FIXED HUDSON-4831] prevent duplicate cause entries for a build
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23699 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-13 05:47:16 +00:00
kohsuke
846851344a
doc improvement.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23616 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-09 22:05:24 +00:00
kohsuke
4c6319fe4f
- CLI "build" command now supports passing parameters.
...
- introduced SimpleParameterDefinition to eliminate the common code
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23543 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 21:43:15 +00:00
kohsuke
51669e429d
typo
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23530 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-06 19:25:13 +00:00
kohsuke
410582a5f9
fixed copyright header
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23434 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 01:01:37 +00:00
kohsuke
fdb9869a3a
Added "delete-builds" CLI command for bulk build record deletion.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23433 71c3de6d-444a-0410-be80-ed276b4c234a
2009-11-03 01:01:23 +00:00
abayer
f01b73bc99
Fixing compilation error caused by UpdateCenter.Plugin moving to UpdateSite.Plugin
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23329 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-29 21:41:45 +00:00
kohsuke
ed096ea21d
Added the "install-plugin" command to install plugins from CLI.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23292 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-28 21:20:08 +00:00
mindless
2530da6893
Update uses of deprecated APIs.
...
Hudson APIs: tasks.Shell, model.Hudson, model.*LoadStatistics,
slaves.ConnecationActivityMonitor, PluginManager
XStream APIs: util.CopyOnWriteList, util.Robust*Converter, model.Result,
model.BuildAuthorizationToken, model.Fingerprint
Stapler APIs: diagnosis.HudsonHomeDiskUsageMonitor, os.solaris.ZFSInstaller
args4j APIs: model.Job, cli.GroovyCommand, cli.handlers.*
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23277 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-28 17:10:52 +00:00
stigkj
58b535c33a
* Fixed error when using stdin as "-" is parsed by args4j which does not understand it;
...
replaced it with "="
* Hardcoded name of script as "=" or something like "not-a-good-script-name.groovy" failed
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23228 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-27 00:10:56 +00:00
kohsuke
199db7ab59
[FIXED HUDSON-4618] Applied the patch toward 1.331.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23111 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-23 20:23:08 +00:00
kohsuke
91a43c52f8
Added the "build" CLI command that can not only schedule a new build, but also wait until its completion.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22663 71c3de6d-444a-0410-be80-ed276b4c234a
2009-10-12 16:26:26 +00:00
kohsuke
9d435fc99a
Added a CLI command <tt>install-tool</tt> to invoke a tool auto-installation from Hudson CLI.
...
(<a href="http://www.nabble.com/Passing-env-variables-automatically-td25584186.html ">report</a>)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22144 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-25 02:19:41 +00:00
kohsuke
3e967dd85d
added a mechanism to check the existence of a command.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22059 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-23 19:07:05 +00:00
kohsuke
0bb6580426
added another CLI command.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21874 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-18 22:47:11 +00:00
kohsuke
3f20513201
allow multi-level CLI target resolution, so that resolution of Run can piggy back on that of Job, and so on.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21497 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-05 23:31:17 +00:00
kohsuke
cbf4b41080
made multiple @Argument work co-operatively.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21485 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-05 14:48:11 +00:00
kohsuke
940fc1c658
doc improvement.
...
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21450 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-04 01:30:37 +00:00