Commit Graph
32590 Commits
Author SHA1 Message Date
mindless 4d61a06045 As instructed by injected test, use <label class="attach-previous">
instead of <label for=...>
Also added null check in javascript for attach-previous,
and fixed typo in error message from injected test.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30582 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 22:45:15 +00:00
mindless b0c90d7c18 fix test.. since r30276 a null secret results in empty string for auth password.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30580 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 22:12:14 +00:00
mindless f855c5ee22 [HUDSON-5951] yay for tests, fix error in new normalize() before it went in any release
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30579 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 21:57:24 +00:00
mindless a6e6c7946a add SubText.groupCount()
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30578 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 21:09:41 +00:00
mindless cd8376e9b4 In editableDescription for test results, invalid variable reference for
permission attribute made the add/edit description link show up for all
users, even if they don't have permission to submit the description.
Fixed this so link is omitted when appropriate.
Also changed permission required to add/edit a description from "Build"
to "Update Run".


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30575 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 20:16:54 +00:00
mindless 5974981064 [FIXED HUDSON-6351] update DirectoryBrowserSupport to use long for contentLength,
and update stapler to 1.141 which supports long for contentLength.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30571 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 18:50:16 +00:00
mindless 90e91d7957 bump up to latest maven-hpi-plugin for good measure
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30569 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 18:28:49 +00:00
mindless b9c74c6c7e core uses maven-stapler-plugin 1.15.. bump these to match.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30564 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 18:09:50 +00:00
kohsuke 0a62096a6d added a new attribute to avoid nesting in the resulting JSON object.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30530 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 00:53:31 +00:00
kohsuke ae21605389 Handling of the -abc token was broken.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30529 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-30 00:52:29 +00:00
kohsuke 23aba80f89 added more databinding controls.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30528 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 23:17:55 +00:00
kohsuke 5030b6f89a A hack to make some of the unit tests happy. I can see why the console check is wrong, but YUI should be always loaded.
When I get a chance, I'll come back to this later.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30527 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 22:51:44 +00:00
kohsuke 85d1e6927f typo.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30526 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 22:50:46 +00:00
kohsuke bd62d913b9 added more convenience methods.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30525 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 22:49:36 +00:00
kohsuke 7d515a7852 take the list of dependency plugins generaetd by the maven-hpi-plugin and make them available as plugins.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30524 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 22:03:06 +00:00
kohsuke dadecc8180 Added a hidden system property to let people change the 'workspace' directory name, for those who are desparate to make the path fit to 256 chars (this is important for old ASCII-based Win32 apps, such as Cygwin 1.5 --- Unicode based later ones aren't affected.)
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30523 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 22:00:36 +00:00
kohsuke 00e75f1e41 console is undefined in HtmlUnit, so we need a guard.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30490 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 18:55:55 +00:00
abayer 2eedba8679 [FIXED HUDSON-6394] Email recipient lists now support build parameters
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30485 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 18:38:39 +00:00
kohsuke 3987a82ce2 I haven't verified this, but to handle nested repeatables properly, we need these.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30471 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 17:11:08 +00:00
mindless ae837cecf4 [FIXED HUDSON-5951] improve normalization of ".." in FilePath
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30462 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 07:35:22 +00:00
sogabe 51773e58ec i18n & l10n(ja) of buildTimeTrend
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30458 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-29 00:22:52 +00:00
kohsuke e0eaac21d8 snapshot dependency crept in
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30457 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-28 21:18:57 +00:00
mindless 0a016f30fb [FIXED HUDSON-5927] apply patch from fcamblor to allow forms with an existing
onsubmit handler; Hudson will now extend that rather than replace it.
Patch also fixes handling of "no-json" class on a form.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30456 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-28 19:12:51 +00:00
mindless c0db657f22 [HUDSON-5844] set build duration to zero if it comes out negative
(clock was set during a short build?).
Also added i18n for getDurationString() result when build is in progress.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30455 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-28 18:58:12 +00:00
mindless 55aef4bb5c [FIXED HUDSON-5617] catch and report missing/invalid proxy port value
when submitting proxy settings.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30454 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-28 18:35:42 +00:00
mindless 95c1ba927a [FIXED HUDSON-5180] remove url binding for this property.. it just shows parameters
form and a Build button that results in error.  index.jelly should only be accessed
via /build (shows index.jelly via _doBuild in this class) where the Build button works.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30453 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-28 17:07:52 +00:00
mindless 4da5f9486c just say "upstream files" instead of "upstream jar files"
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30452 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-28 16:45:43 +00:00
mindless 71854d1b69 [FIXED HUDSON-6371] Fix getArtifactsUpTo so it doesn't count collapsed-directories
as artifacts, resulting in too few artifacts returned (since 1.348).
Also fix limit check so it returns "n" items, not n+1.  Added test.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30451 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-28 16:13:37 +00:00
mindless 5ad11a0dbc [FIXED HUDSON-6332] for 1.357
Add setOverwrite(true) for local->local copy in FilePath.copyRecursiveTo().
This makes it consistent with master/slave copy (either direction),
and also avoids returning 0 if all files already have current/newer timestamp
which some code (javadoc publishing, copyartifact plugin) would interpret as
copy failure or no matching files found.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30450 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-27 23:53:41 +00:00
kohsuke 5c339d5040 @nameRef is a mechanism to designate a different parent, so it needs to be in the different branch of if/then/else from e=e.parentNode.
I realize that this is a risky change, so I need to pay attention to the regerssions caused by this.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30449 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-27 23:43:23 +00:00
kohsuke b988eb8b83 @fillUrl should take the public static fromStapler method into account.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30448 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-27 21:33:23 +00:00
kohsuke b0f664dfcf improved construction of query string.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30447 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-27 21:09:40 +00:00
kohsuke b03e53a1d9 formatting changes.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30445 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-27 19:59:54 +00:00
kohsuke 715829adaa Use the version of the each that doesn't have the catch block, which makes the debugging harder.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30444 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-27 19:59:31 +00:00
kohsuke 5963112082 f:combobox is preferred now.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30442 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-27 18:33:49 +00:00
kohsuke 38d8c36aa9 a convenience method to assist trouble-shooting.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30441 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-27 18:32:45 +00:00
kohsuke 77e5369157 fixed ArrayIndexOutOfBoundsException
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30421 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-26 21:15:34 +00:00
kohsuke 4cc6223c45 @items doesn't exist for <f:select>. C&P error from <f:dropDownList>.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30415 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-26 19:09:25 +00:00
kohsuke 871fb61e0f pushing to the site where I have better control
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30414 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-26 18:34:37 +00:00
kohsuke 6144e4196e marked as an extension and removed AssertionError
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30363 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-23 23:28:07 +00:00
mindless c6c7d9ce24 Add the.hpl in loadBundledPlugins if available, so a plugin can
find itself in the PluginManager when running its own tests.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30361 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-23 22:22:28 +00:00
kohsuke f672a29cd5 adding a UI sample for dynamic combo box.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30360 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-23 20:05:12 +00:00
mindless 24bfe8eac5 r30283 introduced an NPE when tests do createSlave(), as there is no Stapler context
to get the rootUrl.  Add null check here.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30359 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-23 18:09:42 +00:00
kohsuke 19f702af90 this is a drop down list, not a combo box, which is editable.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30338 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-23 00:56:37 +00:00
kohsuke 41273a8ecb adding a check for <label for="...">
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30337 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-22 22:45:38 +00:00
kohsuke 35ab73dc3c - Use the ui-samples plugin for a test bed of automated test injection to plugins.
- Inject cursory Jelly checks to the plugin build.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30336 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-22 22:39:48 +00:00
kohsuke fd8e6429b7 Use a newer ant to avoid the "whitepsace in path" handling problem as shown below:
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'source'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Test harness for Hudson and plugins
[INFO]    task-segment: [source:jar, install]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing source:jar
[INFO] [enforcer:enforce {execution: default}]
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.2.1
[INFO] JDK Version: 1.6.0_19 normalized as: 1.6.0-19
[INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
[INFO] [source:jar {execution: default-cli}]
[INFO] Building jar: C:\cygwin\home\kkawaguchi\ws\hudson\hudson\main\test\target\hudson-test-harness-1.356-SNAPSHOT-sources.jar
[INFO] [enforcer:enforce {execution: default}]
[INFO] [enforcer:display-info {execution: default}]
[INFO] Maven Version: 2.2.1
[INFO] JDK Version: 1.6.0_19 normalized as: 1.6.0-19
[INFO] OS Info: Arch: x86 Family: windows Name: windows xp Version: 5.1
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] inceptionYear not specified, defaulting to 2010
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 9 resources
[INFO] [groovy:execute {execution: preset-packager}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] 

Illegal character in path at index 18: file:/C:/Documents and Settings/kkawaguchi/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException
	at org.codehaus.groovy.maven.plugin.MojoSupport.execute(MojoSupport.java:85)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
	... 17 more
Caused by: java.lang.IllegalArgumentException
	at java.net.URI.create(URI.java:842)
	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.apache.tools.ant.launch.Locator.fromURI(Locator.java:162)
	at org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:119)
	at org.apache.tools.ant.launch.Locator.getClassSource(Locator.java:90)
	at org.apache.tools.ant.Project.setAntLib(Project.java:313)
	at org.apache.tools.ant.Project.initProperties(Project.java:309)
	at org.apache.tools.ant.Project.init(Project.java:295)
	at groovy.util.AntBuilder.createProject(AntBuilder.java:140)
	at groovy.util.AntBuilder.<init>(AntBuilder.java:69)
	at org.codehaus.groovy.maven.runtime.v1_6.ScriptExecutorFeature$ScriptExecutorImpl.createAntBuilder(ScriptExecutorFeature.java:84)
	at org.codehaus.groovy.maven.runtime.v1_6.ScriptExecutorFeature$ScriptExecutorImpl.createMagicAttribute(ScriptExecutorFeature.java:101)
	at org.codehaus.groovy.maven.runtime.support.ScriptExecutorSupport.applyContext(ScriptExecutorSupport.java:108)
	at org.codehaus.groovy.maven.runtime.support.ScriptExecutorSupport.execute(ScriptExecutorSupport.java:69)
	at org.codehaus.groovy.maven.plugin.execute.ExecuteMojo.process(ExecuteMojo.java:200)
	at org.codehaus.groovy.maven.plugin.ComponentMojoSupport.doExecute(ComponentMojoSupport.java:60)
	at org.codehaus.groovy.maven.plugin.MojoSupport.execute(MojoSupport.java:69)
	... 19 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/kkawaguchi/.m2/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
	at java.net.URI$Parser.fail(URI.java:2809)
	at java.net.URI$Parser.checkChars(URI.java:2982)
	at java.net.URI$Parser.parseHierarchical(URI.java:3066)
	at java.net.URI$Parser.parse(URI.java:3014)
	at java.net.URI.<init>(URI.java:578)
	at java.net.URI.create(URI.java:840)
	... 38 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Thu Apr 22 15:20:14 PDT 2010
[INFO] Final Memory: 37M/89M
[INFO] ------------------------------------------------------------------------


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30335 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-22 22:23:00 +00:00
kohsuke 3171a480b5 doc improvement.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30334 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-22 22:05:22 +00:00
kohsuke ee711d4e63 added a convenient base class.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30333 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-22 21:42:41 +00:00
kohsuke 23c7b05fc7 simplified.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30332 71c3de6d-444a-0410-be80-ed276b4c234a
2010-04-22 21:31:39 +00:00