Commit Graph
11799 Commits
Author SHA1 Message Date
kohsuke 8f00ea7df8 added a copy callback, separate from the create callback.
This is based on a discussion in http://www.nabble.com/How-do-I-make-a-BuildWrapper-be-on-by-default--td25285336.html

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21785 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-17 17:53:12 +00:00
kohsuke 484c3057b6 Merged revisions 21777 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc

........
  r21777 | kohsuke | 2009-09-17 09:55:27 -0700 (Thu, 17 Sep 2009) | 1 line
  
  fixed a regression in the JDK installation
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21781 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-17 17:12:29 +00:00
kohsuke facd121942 akuma 1.3 contains a fix for 64bit Solaris JVM (which requires one to run $JAVA_HOME/bin/sparcv9/java, and that's why we didn't notice it till now)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21778 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-17 17:04:47 +00:00
mindless 5fde7f0f73 add TODO note to allow upgrade of bundled plugins
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21776 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-17 16:30:05 +00:00
mindless 0627cea06c Don't use @QueryParameter with doCheckURIEncoding, as then stapler reads
the parameter before the request.setCharacterEncoding() call in this method
(which results in a warning in the webserver log with SJSWS7).


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21771 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-17 15:41:10 +00:00
kohsuke bbdf6c0b79 integrated stapler 1.115
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21757 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-17 01:45:31 +00:00
jglick 8a304d59fe Incorrect code rejected by JDK 7's javac (and NB's editor).
http://www.netbeans.org/nonav/issues/show_bug.cgi?id=163763

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21750 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-16 22:50:48 +00:00
jglick 655601ebb3 Unescaped apostrophes were dropped from message formats.
Anyway it is best to avoid contractions in displayed text.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21748 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-16 22:13:53 +00:00
kohsuke 652a9a5c2f this needs to be public.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21747 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-16 20:40:56 +00:00
kohsuke f2aecc5551 more convenience methods.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21746 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-16 20:28:24 +00:00
kohsuke d2c8e6b8f8 more references.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21699 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-16 02:31:06 +00:00
kohsuke 235db08eb4 improved cross referencing.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21698 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-16 02:29:49 +00:00
kohsuke 905796f3e7 bundling the latest version of trilead-ssh2
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21696 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-16 00:46:24 +00:00
kohsuke 200518006a refactoring the JDK installer to allow ssh-slaves to do this over SSH.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21687 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-15 18:53:31 +00:00
kohsuke 08c9928037 allow subtypes to be defined by plugins.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21686 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-15 18:12:52 +00:00
kohsuke 8a73c25000 Fixed the charset encoding handling when different encodings are involved between the master and slaves.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21664 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 23:52:25 +00:00
kohsuke 73f1b2ebac fixed a serialization form of Result so that it works like a value type.
See http://d.hatena.ne.jp/masanobuimai/20090911#1252684658

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21663 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 22:56:08 +00:00
abayer a06763a324 Rolling back r21576
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21662 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 20:36:31 +00:00
mindless 82f0feb999 Updates to use non-deprecated APIs, and add some @Override annotations
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21661 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 19:40:23 +00:00
mindless 2a67420162 fix indent
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21657 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 19:19:35 +00:00
mindless db93c57e03 Add @Override annotations, one copyright header and some tab->ws
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21655 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 19:10:57 +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
pgweiss 7c2d1e9455 Don't fail the build when there is nothing to archive -- just warn -- provided system property hudson.tasks.ArtifactArchiver.warnOnEmpty=true
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21652 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-14 15:28:53 +00:00
dty 2a34cdafe6 [HUDSON-3677] First pass at providing read-only access to project configuration.
Defined a new permission, ExtendedRead, which can be enabled by specifying true
for the system property hudson.security.ExtendedReadPermission. Granting job
configuration permissions implies this permission.

	main/core/src/main/java/model/Item.java

Added plumbing for dynamic enabling and disabling of permissions at runtime.
This will be the basis for future UI based toggling of the availability of a
permission.

	main/core/src/main/java/hudson/security/Permission.java

Add the enabled state of a permission to the decision about whether a principal
has it or not. Only show a permission when it's enabled.

	main/core/src/main/java/hudson/security/GlobalMatrixAuthorizationStrategy.java

Allow access to config.xml when ExtendedRead is granted.

	main/core/src/main/java/hudson/model/Job.java

Don't show the save button if the user only has ExtendedRead.

	main/core/src/main/resources/hudson/model/Job/configure.jelly

Change the text of the Configure link in the side panel based on whether a user
has Configure or ExtendedRead permissions.

	main/core/src/main/resources/hudson/model/AbstractProject/sidepanel.jelly



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21626 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-12 08:13:00 +00:00
mindless 60993d8bef Revert r21459 until cvs is ready as a plugin.. for now it causes broken
help links and failures in HelpLinkTest.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21601 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-10 22:56:40 +00:00
abayer 8f45c551e8 Adding top-level pluginManagement, pushing plugin definitions to there, making sure every plugin is invoked as at least groupId/artifactId in child poms
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21576 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-10 20:44:49 +00:00
kohsuke dfacf6eab5 delete the config file first, so that even if the request doesn't fully complete, the job won't be resurrected.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21575 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-10 20:40:25 +00:00
mindless c3583afaff avoid a couple redundant save() calls in submit()
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21571 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-10 16:35:26 +00:00
mindless 55d7345706 Align/center "Master" in executor status the same as other slave headings (for mrooney)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21564 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 23:14:13 +00:00
mindless f8751b2001 [FIXED HUDSON-4366] move runSequentially checkbox outside the Axes optionalBlock.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21558 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 19:58:19 +00:00
mindless bf9c475fe6 [FIXED HUDSON-4405] trim remoteFS value to avoid hard-to-notice error
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21557 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 19:04:17 +00:00
mindless bcd7e87b0d [FIXED HUDSON-4392] call Util.rawEncode on slaveName in jnlp url
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21556 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 18:51:33 +00:00
mindless 3fc6d397ac [FIXED HUDSON-4402] s/rootUrl/rootURL/ to fix link in junit test results.
Also fixed 1 more in RunParameterValue.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21554 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 18:34:40 +00:00
mindless d47993cfc6 [FIXED HUDSON-4333] rename constructor param from defaultvalue to defaultValue
so it works properly with @DataBoundConstructor


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21553 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 17:40:51 +00:00
abayer c13c7f94f0 [FIXED HUDSON-4423] Properly setting blockBuildWhenUpstreamBuilding now
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21550 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 16:03:12 +00:00
mindless f7e9b4fbd1 Replace uses of /fieldCheck validator with clazz="required" client-side validation.
Marked Hudson.doFieldCheck as deprecated.
Also a few more escape->encodeURIComponent.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21549 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 01:27:07 +00:00
mindless 41b1ebd4d0 Add clazz attribute on f:textbox so clazz="number" or "positive-number"
can be used for client-side validation, and replaced some <input>
with f:textbox calls.  Also another encode->encodeURIComponent.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21548 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 01:15:12 +00:00
mindless 533b34e195 Change escape(this.value) and encode(this.value) calls in checkUrl attributes
to encodeURIComponent(this.value).  Escape is not sufficient, as it does not
encode +.  Function encode() in hudson-behavior.js is ok, but we can just use
a standard javascript function instead.
Marked encode() as deprecated.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21546 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 00:45:49 +00:00
mindless 3581170d28 change some <input> to use f:textbox or f:password
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21545 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 00:19:42 +00:00
mindless 5491cb256a [Util.rawEncode] Change complicated if expression to simpler array lookup
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21537 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-08 17:26:13 +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
mindless 22b729ff81 Add authentication support in hudson.Main (if username/password are included in
HUDSON_HOME URL, then include Authorization header in Hudson http requests).

Also moved Functions.isUnitTest to Main.isUnitTest, to remove dependency on
winstone.jar for running hudson.Main (Main uses EnvVars which checks isUnitTest
flag.. in Functions which uses servlet classes).

Updated http://wiki.hudson-ci.org/display/HUDSON/Monitoring+external+jobs
with info about required jars and authentication.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21479 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-05 04:49:03 +00:00
kohsuke 5eaec18e1b Merged revisions 21462,21464,21467 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21462 | kohsuke | 2009-09-04 13:21:46 -0700 (Fri, 04 Sep 2009) | 1 line
  
  [maven-release-plugin] prepare release hudson-1_323
........
  r21464 | kohsuke | 2009-09-04 13:22:01 -0700 (Fri, 04 Sep 2009) | 1 line
  
  [maven-release-plugin] prepare for next development iteration
........
  r21467 | kohsuke | 2009-09-04 13:53:51 -0700 (Fri, 04 Sep 2009) | 1 line
  
  updated changelog as a part of the release
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21477 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-05 00:38:09 +00:00
gliptak 704807ffd2 Separating CVS functionality into a standalone plugin.
https://hudson.dev.java.net/issues/show_bug.cgi?id=3101

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21459 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-04 17:26:45 +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
kohsuke 5167a64490 added a mechanism to perform a method parameter binding for CLI, which is somewhat akin to how Stapler performs a method parameter binding for HTTP requests.
This makes it much easier to expose CLI commands from existing model objects.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21448 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-04 00:44:57 +00:00
kohsuke c03af5e9c1 bumped up to a new version
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21447 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-04 00:21:21 +00:00
kohsuke 1642a98e64 turns out these are unnecessary.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21446 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-03 23:46:24 +00:00
kohsuke 65de7809ba recording these code before I delete them.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21445 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-03 23:45:47 +00:00