Commit Graph
32590 Commits
Author SHA1 Message Date
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
abayer 75ec5aef92 [FIXED HUDSON-4442] Empty or whitespace-only modules are now properly ignored by POM parser
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21610 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-11 15:06:22 +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 e69a370619 Belatedly adding a test in MavenMultiModuleTest, adding MavenJellyTest to test maven-plugin's Jelly scripts
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21600 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-10 22:38:57 +00:00
kohsuke 8d98e3929a [HUDSON-3814] associating this test case with the bug ID in question.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21587 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-10 21:50:57 +00:00
kohsuke fe94108490 adding a test case for http://www.nabble.com/tar.gz-becomes-.gz-after-Hudson-deployment-td25391364.html but failed to reproduce the problem.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21583 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-10 21:45:13 +00:00
kohsuke 13ac5a7edf perform syntax checks on Jelly scripts
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21577 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-10 20:45:23 +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
abayer 6cf4165a55 Adding version info for findbugs maven plugin
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21572 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-10 17:33:01 +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
redsolo b04ba7bf88 [HUDSON-4423] Added test case for issue
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21560 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-09 20:12:06 +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 03d15ffd34 Add class="required" client-side validator.
Added support for multiple client-side validators (class="required number"),
and for checkMessage=".." attribute to override default error message.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21538 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-08 17:28:21 +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
redsolo f2d1417e4d Added test for including summary.jelly files from job properties.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21531 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-07 22:06:13 +00:00
abayer a5f24cca93 [FIXED HUDSON-1066] Added call to MailSender in RunnerImpl.cleanUp so that mail gets sent for top-level Maven project as well as individual modules. Also, William the Conqueror won the Battle of Hastings in 1066. Just thought I'd mention that.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21509 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-06 22:47:54 +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
kohsuke b160e61e7b perhaps this is causing a build failure?
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21460 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-04 18:17:39 +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
kohsuke 75c670fae6 Merged revisions 21412 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21412 | abayer | 2009-09-03 08:55:53 -0700 (Thu, 03 Sep 2009) | 1 line
  
  Fixing rendering bug
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21425 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-03 18:57:51 +00:00
kohsuke 0e8be7ac8f Merged revisions 21400 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21400 | kohsuke | 2009-09-02 18:39:44 -0700 (Wed, 02 Sep 2009) | 1 line
  
  bundling subversion 1.7
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21410 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-03 14:45:45 +00:00
kohsuke f1577378b3 been here too long to claim it's still experimental.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21397 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-03 00:36:30 +00:00
kohsuke 1fc3aec647 Merged revisions 21391 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21391 | kohsuke | 2009-09-02 16:46:59 -0700 (Wed, 02 Sep 2009) | 2 lines
  
  fixed a possible race condition. I noticed that Hudson-on-Hudson was hanging because the main thread was Object.wait-ing forever with no trace of a build.
  OneShotEvent avoids this problem.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21392 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 23:50:46 +00:00
kohsuke 66bf21ba97 Merged revisions 21385-21386 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21385 | kohsuke | 2009-09-02 15:41:39 -0700 (Wed, 02 Sep 2009) | 1 line
  
  Fixed a random test failure, which was caused by PingThread detecting communication problem while it's being orderly shut down.
........
  r21386 | kohsuke | 2009-09-02 15:41:57 -0700 (Wed, 02 Sep 2009) | 1 line
  
  indentation fix.
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21387 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 23:06:15 +00:00
kohsuke cad0223491 Improving error handling to better understand the problem redsolo is facing:
testThatUsernameWithDifferentCasingIsNotDisplayedAsOne(hudson.plugins.cigame.ScoreCardActionIntegrationTest)  Time elapsed: 0 sec  <<< ERROR!
java.io.IOException: Access is denied
        at java.io.WinNTFileSystem.createFileExclusively(Native Method)
        at java.io.File.checkAndCreate(File.java:1704)
        at java.io.File.createTempFile(File.java:1793)
        at org.jvnet.hudson.test.TemporaryDirectoryAllocator.allocate(TemporaryDirectoryAllocator.java:63)
        at org.jvnet.hudson.test.HudsonHomeLoader$1.allocate(HudsonHomeLoader.java:54)
        at org.jvnet.hudson.test.HudsonHomeLoader$CopyExisting.allocate(HudsonHomeLoader.java:83)
        at org.jvnet.hudson.test.HudsonHomeLoader$Local.allocate(HudsonHomeLoader.java:123)
        at org.jvnet.hudson.test.HudsonTestCase.newHudson(HudsonTestCase.java:296)
        at org.jvnet.hudson.test.HudsonTestCase.setUp(HudsonTestCase.java:223)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:91)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21372 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 20:34:16 +00:00
kohsuke 620e385751 Merged revisions 21368 via svnmerge from
https://svn.dev.java.net/svn/hudson/branches/rc

........
  r21368 | kohsuke | 2009-09-02 13:14:25 -0700 (Wed, 02 Sep 2009) | 33 lines
  
  wait until the channel terminates normally to avoid random test failures like this:
  
  junit.framework.AssertionFailedError: exit code should have been 0 expected:<0> but was:<255>
  	at junit.framework.Assert.fail(Assert.java:47)
  	at junit.framework.Assert.failNotEquals(Assert.java:285)
  	at junit.framework.Assert.assertEquals(Assert.java:64)
  	at junit.framework.Assert.assertEquals(Assert.java:201)
  	at hudson.remoting.ChannelRunner$Fork.stop(ChannelRunner.java:141)
  	at hudson.remoting.RmiTestBase.tearDown(RmiTestBase.java:53)
  	at junit.framework.TestCase.runBare(TestCase.java:130)
  	at junit.framework.TestResult$1.protect(TestResult.java:106)
  	at junit.framework.TestResult.runProtected(TestResult.java:124)
  	at junit.framework.TestResult.run(TestResult.java:109)
  	at junit.framework.TestCase.run(TestCase.java:118)
  	at junit.framework.TestSuite.runTest(TestSuite.java:208)
  	at junit.framework.TestSuite.run(TestSuite.java:203)
  	at junit.framework.TestSuite.runTest(TestSuite.java:208)
  	at junit.framework.TestSuite.run(TestSuite.java:203)
  	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.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
  	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
  	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
  	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
  	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.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
  	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
........


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21371 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 20:30:06 +00:00
pgweiss 2902da9c06 In executor status pane provide separate links to projects and builds.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21366 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 19:13:02 +00:00
pgweiss e9def49a05 If a project is not set for concurrent builds and there is more than one job
in the queue (e.g. if the build is parameterized), then don't make more than
one of them runnable.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21365 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 19:11:20 +00:00
kohsuke 2e1a591e3a Initialized merge tracking via "svnmerge" with revisions "1-21360" from
https://www.dev.java.net/svn/hudson/branches/rc


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21362 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 17:25:07 +00:00
kohsuke b4384c3a56 adding bit more assertions to understand why this test is flaky.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21358 71c3de6d-444a-0410-be80-ed276b4c234a
2009-09-02 17:08:39 +00:00