Commit Graph
225 Commits
Author SHA1 Message Date
Jesse Glick a0d6e5286d Fixed outstanding uses in core of deprecations from #1135 & #1138. 2014-02-27 17:29:29 -05:00
Jesse Glick 7c568178f3 [FIXED JENKINS-21958] FilePath.copyRecursiveTo given a scanner including a symlink but not any regular file in the same directory would neglect to create the parent directory on the destination and thus not copy the link.
(Util.createSymlink is partly to blame for not throwing a descriptive IOException when it fails to create a link,
but this is its historical behavior needed for compatibility.
copyRecursiveTo also continues to suppress error text from this method because there is nowhere for it to go.
Perhaps need a new variant of createSymlink that is guaranteed to either have created the link or throw an exception.)
2014-02-26 10:13:39 -05:00
Oliver Gondža 3cc7188d03 Amending #982 2013-11-25 16:00:28 +01:00
Oliver Gondža 5002949506 Merge pull request #982 from h0nIg/master
added ability to get remote disk sizes
2013-11-25 15:43:37 +01:00
Jesse Glick 15ac490af1 Now that we use Java 6, can finally deprecate IOException2. 2013-11-15 08:19:59 -05:00
Hans-Joachim Kliemeck 8dfa6f7363 added ability to get remote disk sizes 2013-10-29 19:59:10 +01:00
Kohsuke Kawaguchi f15f49f6f4 Merge pull request #923 from evernat/master
Optimize and close Zip resources in ClassicPluginStrategy and FilePath
2013-10-27 12:05:23 -07:00
Jesse Glick 793b6826e5 [FIXED JENKINS-19947] Restore historical undocumented behavior of a top-level entry in a ZIP.
Noting that various DirScanner implementations handle this inconsistently.
2013-10-09 09:55:06 -04:00
Andrew Kiellor 47c90210e3 Remove unused import. 2013-10-04 13:51:44 -04:00
Andrew Kiellor ff71ab755c Migrated some usages of GNUCLibrary to the jnr PosixAPI, fixed 'mvn -Plight-test install' on ubuntu with OpenJDK. 2013-10-04 13:42:42 -04:00
Jesse Glick 8deb42bf89 [JENKINS-19473] Removing workaround since root bug should be fixed in jzlib 1.1.3. 2013-10-04 11:16:55 -04:00
Nicolas De Loof 6450647d64 [FIXED JENKINS-19821] recognize UNC path as absolute 2013-10-01 12:19:48 +02:00
Kohsuke Kawaguchi 7ec8787122 Wrong target 2013-09-13 12:54:53 -07:00
Kohsuke Kawaguchi bb848952e3 More doc improvements 2013-09-13 12:30:07 -07:00
Kohsuke Kawaguchi f60b631a8a targeting to 1.531 2013-09-13 12:16:34 -07:00
Kohsuke Kawaguchi d3a13f46e6 making the method more discoverable by having an instance method 2013-09-13 12:00:22 -07:00
Jesse Glick b74750934c Merge branch 'master' into ArtifactManager-JENKINS-17236
Conflicts:
	core/src/main/java/hudson/FilePath.java
	core/src/main/java/hudson/tasks/ArtifactArchiver.java
2013-09-12 07:57:32 -04:00
Jesse Glick b02d45737e [FIXED JENKINS-19473] Trying to work around jzlib bug. 2013-09-11 17:45:10 -04:00
Jesse Glick 574fe1409e [FIXED JENKINS-9540] Failure of recursive copy on slave side should be reported.
Instead it was being thrown in a Future that the master did not wait for:
the writing side failed with a closed pipe exception, and this meaningless error was thrown up.
Fixing by waiting for the reading side first, so any error there will be thrown up.
(If there was _also_ an error on the writing side, we would miss it, but typically this will just be the closed stream.)
2013-08-29 16:13:48 -04:00
evernat f5742df16b Optimize and close Zip resources in ClassicPluginStrategy and FilePath 2013-08-27 00:03:09 +02:00
Jesse Glick 851b2d938b Making ExplicitlySpecifiedDirScanner public since it can be useful for other artifact managers. 2013-08-21 11:22:35 -04:00
Jesse Glick 957595d2b4 You might expect new FilePath(null, "/local/path").getChannel() to be null.
Confusingly, it is instead MasterComputer.localChannel!
If that is fed back into FilePath.<init>(VirtualChannel,String) rather than using .<init>(FilePath,String)
you get an object that behaves strangely and throws exceptions.
2013-08-19 16:19:20 -04:00
Jesse Glick 920c3fde33 A DirScanner must be serializable. 2013-08-13 13:04:52 -04:00
Jesse Glick 2e09239906 Java 5 compatibility. 2013-08-12 19:08:11 -04:00
Jesse Glick ee4455d3ea Reworked ArtifactManager.archive to take a Map<String,String> to allow more flexible archiving behaviors. 2013-08-12 18:03:52 -04:00
Jesse Glick 902a0747f3 Emphasizing that FileCallable should not be an inner class. 2013-08-01 15:59:01 -04:00
ssogabe 26f913baaa make sure to close writer 2013-07-28 01:28:44 +09:00
ssogabe e4ea2fa75c fixed Compilation failure 2013-07-27 17:06:36 +09:00
Kohsuke Kawaguchi c462cb634c added a convenience method 2013-07-26 21:02:13 -07:00
Jesse Glick 11953750ab [[JENKINS-16301] Use a buffered input stream to get somewhat better performance also from Maven archiving.
Introducing Util.getDigestOf(File) as a convenience.
2013-07-24 16:30:48 -04:00
Kohsuke Kawaguchi 735713801b [FIXED JENKINS-18438]
Node monitoring should run in parallel to reduce the total round-trip
time in large instances.
2013-06-26 16:29:43 -07:00
Jesse Glick b7e2d6127f Merge branch 'master' into JENKINS-14362-jzlib
Conflicts:
	core/pom.xml
2013-06-19 08:36:03 -04:00
Jesse Glick 7f966f6f31 [FIXED JENKINS-18351] Better fix for file handle leak. 2013-06-14 18:11:14 -04:00
Christoph Kutzinski 93c31be1b7 [FIXED JENKINS-18351] file descriptor leak while fingerprinting 2013-06-14 18:36:08 +02:00
Jesse Glick dedb24ef03 Merge branch 'master' into JENKINS-14362-jzlib 2013-06-11 08:00:27 -04:00
Jesse Glick b1c82f1e30 stephenc asks to use TODO rather than XXX 2013-06-10 11:53:13 -04:00
Jesse Glick 3701a327a7 [JENKINS-14362] Switch to jzlib for GZIP streaming. 2013-06-03 14:20:35 -04:00
Jesse Glick 9d72311ba0 [JENKINS-16301] Use a buffered input stream to get somewhat better performance. 2013-05-21 17:42:50 -04:00
Jesse Glick b67272e726 [FIXED JENKINS-17330] FilePath.installIfNecessaryFrom should avoid routing download over remoting channel. 2013-03-27 19:11:06 -04:00
Christoph Kutzinski b807845b9b Added serialVersionUID to all Callables 2013-01-20 13:48:02 +01:00
Christoph Kutzinski 19b31687c8 [JENKINS-16215] : changelog 2013-01-20 13:40:54 +01:00
Lars Hvile 35f7653b7b [JENKINS-16215] Avoiding unnecessary downloads in FilePath.installIfNecessaryFrom.
The updated version uses the locally cached timestamp, '.timestamp', to set the
'If-Modified-Since' header. 304 Not Modified responses are dealt with by
aborting the installation.
2012-12-28 14:43:41 +01:00
Jesse Glick 9005275457 Documenting previously undeclared PosixException from mode(). 2012-11-05 15:55:31 -05:00
Jesse Glick a885cc2179 [FIXED JENKINS-7214] FilePath.validateAntFileMask too slow for /configure. 2012-09-19 16:43:20 -04:00
wolfgarnet 6b056fa0ab Added callable wrapper to actAsync 2012-09-12 16:04:49 +02:00
Nicolas De loof 020e46b28b Update core/src/main/java/hudson/FilePath.java
make AbstractInterceptorCallableWrapper a static inner class for usability in plugins
2012-09-12 14:36:11 +03:00
Nicolas De Loof 8b15fb6ae7 null check to avoid unit test failure 2012-09-11 15:19:11 +02:00
Nicolas De loof c47fcd868a Update core/src/main/java/hudson/FilePath.java
fix confusion in my french-to-english buggy translator :P
2012-09-07 16:50:04 +03:00
Nicolas De Loof 299e3d5700 Extension don't need to extend AbstractDescribableImpl 2012-09-06 21:43:36 +02:00
Nicolas De Loof a0f6f49f5c add some javadoc links and @since 2012-09-06 16:29:50 +02:00