Commit Graph
11799 Commits
Author SHA1 Message Date
Jesse Glick b36b0d60da ${rootURL} should be used to locate env-vars.html, since otherwise the link will be broken when the builder is configured from a job inside a folder. 2013-03-18 14:58:28 -04:00
Jesse Glick c6f988a120 Normalized help file locations. 2013-03-18 14:41:24 -04:00
Jesse Glick a4f16799e2 Merge branch 'master' into ArtifactManager-JENKINS-17236
Conflicts:
	core/src/main/java/hudson/tasks/ArtifactArchiver.java
2013-03-18 12:25:32 -04:00
Jesse Glick aeb887c12d Merge pull request #732 from pjrt/JENKINS-10502
[FIXED JENKINS-10502] Option to make the build not fail if there is nothing to archive
2013-03-18 08:21:01 -07:00
Jesse Glick fe099a1a0a Distinguishing getArtifactManager and pickArtifactManager.
These do different things that should not be conflated.
2013-03-18 10:52:59 -04:00
Jesse Glick 7372f93a4f Revert "Stronger and shorter type signature"
This reverts commit 36049b6528.

3f0fff9 failed to make Run.java compilable; and this commit introduced a rawtypes warning in ArtifactManager.
Provisionally switching back to originally type signatures which at least were accepted by the compiler, if not optimal.
2013-03-18 10:41:45 -04:00
Jesse Glick a49d8f8a96 Revert "type error fix"
This reverts commit 3f0fff9867.
2013-03-18 10:41:38 -04:00
Kohsuke Kawaguchi 77e011a3da the trunk is toward 1.508-SNAPSHOT 2013-03-17 16:22:54 -07:00
Pedro Rodriguez f43cde68a8 Added help-allowEmptyArchive.html. Did some cleanup in ArtifactArchiver and config.jelly 2013-03-15 23:41:37 -04:00
Kohsuke Kawaguchi 3f0fff9867 type error fix 2013-03-15 19:09:00 -07:00
Kohsuke Kawaguchi 36049b6528 Stronger and shorter type signature 2013-03-15 18:54:50 -07:00
Kohsuke Kawaguchi ae816df41e Allowing the object returned from ArtifactManager to be bound under the URL space of build.
DirectoryBrowserSupport is a bit of weirdo, in that its a very intelligent HttpResponse object that creates a whole hierarchy. But most of the time, complex structures are created by a series of POJOs referencing each other. Defining a signature to return HttpResponse prevents this common design pattern.

In contrast, as I wrote in the revised javadoc, one can force a certain HttpResponse during the object traversal by throwing an HttpResponse.

So this new signature can accommodate both cases, so I recommend this over the original signature
2013-03-15 18:53:33 -07:00
Kohsuke Kawaguchi 7a2833e09e documenting the restrictions about when they can be invoked. 2013-03-15 18:41:20 -07:00
Jesse Glick da47873031 appliesTo should default to true. 2013-03-15 19:06:48 -04:00
Jesse Glick 834f10a531 Passing in the workspace explicitly means the standard manager can work on any Run. 2013-03-15 18:57:30 -04:00
Jesse Glick 42922b9a70 Added some more methods to ArtifactManager that look to be needed based on grepping plugin sources for usages of now-deprecated getArtifactsDir.
Most such plugins just need to store or load individual artifacts, and could easily be made to accept an InputStream, and this is easy to support in various implementations, so do that.
A few really expect to get a java.io.File directory that they can play with, but these are the exceptions.
Such plugins will just not work when used on builds with nondefault storage, unless they are rewritten.
2013-03-15 18:38:49 -04:00
Kohsuke Kawaguchi b9ae6a22dc allowing subtype to create its own XStream
based on the conversation with Weltraumschaf (the DARCS plugin maintainer)
2013-03-15 14:54:49 -07:00
Jesse Glick 865f74af36 Merge branch 'master' into ArtifactManager-JENKINS-17236 2013-03-15 17:25:47 -04:00
Jesse Glick 6d904f5c19 [FIXED JENKINS-2058] Fail the build if artifact archiving fails with an IOException. 2013-03-15 17:25:05 -04:00
Jesse Glick 7c3067ac45 Oops, was deleting artifacts from the wrong build. 2013-03-15 16:52:53 -04:00
Jesse Glick 5dccbc6277 Simply subclassing StandardArtifactManager is probably more intuitive than delegating. 2013-03-15 15:53:44 -04:00
Jesse Glick f7e9c13401 Additional comment about appliesTo. 2013-03-15 15:35:26 -04:00
Jesse Glick e1eea67bb2 [JENKINS-17236] Initial version of ArtifactManager (no Maven support yet). 2013-03-15 14:31:12 -04:00
Pei-Tang Huang 6a3c5f7f23 Align LabelAxis help document with config.jelly. 2013-03-15 13:28:40 +08:00
Pei-Tang Huang 21866aa49a Remove redundant space in sentence. 2013-03-15 13:15:30 +08:00
Harald Albers a13864be74 German translation for permission descriptions 2013-03-14 18:41:00 +01:00
Kohsuke Kawaguchi 25084f5282 [FIXED JENKINS-3265]
Made the in-flight build survive the reload from the disk.
2013-03-14 10:09:25 -07:00
Jesse Glick a32f2dd39d Removing obsolete comment. 2013-03-14 10:27:56 -04:00
Pedro Rodriguez 470d9ce8ba Backwards compatibility added. Added allowEmptyArchive test 2013-03-13 23:37:30 -04:00
Kohsuke Kawaguchi 4d0def46cc [JENKINS-16089] needs a separator here
And since it's now a symlink that points to another symlink that then
points to the real stuff, we need recursive onion peeling.
2013-03-13 17:05:06 -07:00
Kohsuke Kawaguchi 47d545ea8e doc improvement 2013-03-13 17:05:06 -07:00
Michael Clarke ab80790810 Merge branch 'master' of https://github.com/jenkinsci/jenkins 2013-03-13 22:24:22 +00:00
Kohsuke Kawaguchi fe9f676028 [FIXED JENKINS-15583]
Report 100 recent builds in the JSON API, including in-progress builds.

Not reporting all the builds since this would nullify the lazy loading
effect. Will introduce a pagenation API that supports retrieval.
2013-03-13 15:17:36 -07:00
Michael Clarke 3b58cd294f [FIXED JENKINS-8713] Display test skipped messages in test results 2013-03-13 19:03:51 +00:00
Kohsuke Kawaguchi c7ad5e9706 [JENKINS-15533] testing if the lazy loading can gracefully tolerate a RuntimeException during unmarshalling.
At least in the current version this working as expected
2013-03-13 10:52:05 -07:00
Pei-Tang Huang 6f206beb1f Translate "regression" to "退步" instead of "回歸". 2013-03-13 23:14:08 +08:00
Pei-Tang Huang de9cf6b02c Remove redundant English terms. 2013-03-13 23:14:06 +08:00
Kohsuke Kawaguchi 28bf5d8002 [FIXED JENKINS-15587]
The actual fix was in the pull request #675.
2013-03-12 22:13:26 -07:00
Kohsuke Kawaguchi 2f781863f5 Massaging the fix.
- ID_FORMATTER is time zone sensitive, so comparing against # of
  milliseconds since the epoch won't be portable.

- resolveSymlink can return a relative path.
2013-03-12 22:11:26 -07:00
Kohsuke Kawaguchi f7c9e81060 [JENKINS-16089] Revising 88feabb429
Based on comments from Jesse, revising the fix.

I'm now putting permlinks inside the builds/ directory to avoid the computing hassle involved in the split $JENKINS_HOME.

What we historically had in $JENKINS_HOME/jobs/JOB/lastSuccessfulBuild is also now subsumed by this feature. I initially attempted to create these permalinks in the buidl root directory, but turns out those symlinks aren't the same name as the ID of permalinks, so it doesn't mesh well.

And finally, a test!
2013-03-12 18:22:54 -07:00
Kohsuke Kawaguchi 776c8686b5 oops 2013-03-12 17:23:19 -07:00
Kohsuke Kawaguchi 88feabb429 [FIXED JENKINS-16089]
Remember the permalink target as symlink (or simple text file) so that
looking that up doesn't cause the walk of the build history.
I think this is more in line with our general preference of making
$JENKINS_HOME useful (than trying to persist cache into a blackbox.)

Having a general purpose in-memory cache could be useful, so I'll see if
I can add that, too, in a way that allows someone to plug different
backend.
2013-03-12 14:21:38 -07:00
Kohsuke Kawaguchi 1091476399 improved th probe 2013-03-12 14:19:49 -07:00
Kohsuke Kawaguchi d97b0834c8 Windows symbolic support for Java5/6 2013-03-12 14:19:49 -07:00
Kohsuke Kawaguchi ffc188a1a5 the trunk is toward 1.507-SNAPSHOT 2013-03-10 21:06:50 -07:00
Pedro Rodriguez d3096819f6 [JENKINS-10502] Option to make the build NOT fail if there is nothing to archive 2013-03-10 01:53:55 -05:00
Pei-Tang Huang 70f81b5145 Update Traditional Chinese translations. 2013-03-10 00:06:42 +08:00
Jesse Glick d98716dfba [FIXED JENKINS-17138] Deleting/renaming jobs using external builds directory does not move builds. 2013-03-08 20:43:49 -05:00
Jesse Glick b90b20227e [FIXED JENKINS-17137] Bogus permalinks created when using external builds directory. 2013-03-08 20:08:00 -05:00
Jesse Glick 915d825327 Further clarification of targetPath. It is not necessarily relative to baseDir! 2013-03-08 19:59:46 -05:00