Commit Graph
186 Commits
Author SHA1 Message Date
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
Nicolas De Loof 3e596c9463 don't unnecessary expose callable 2012-09-06 16:27:11 +02:00
Nicolas De Loof dfa6e2cf0c improve javadoc to clarify which code is ran on master/slave 2012-09-06 16:21:14 +02:00
Nicolas De Loof 928ef2123a abstract implementation for interceptor-like FilaCallableWrappers 2012-09-06 15:46:43 +02:00
Nicolas De Loof 5c80e9476f extension point for FilePath.act interception 2012-09-06 15:04:27 +02:00
Nicolas De Loof ee64beec1c document mask values to be an octal 2012-08-20 11:30:57 +02:00
Kohsuke Kawaguchi 999c80cdc1 make the variable name represent what it allows 2012-07-23 14:10:15 -07:00
Kohsuke Kawaguchi f49d625845 [FIXED JENKINS-11251]
The actual meat of the change is in remoting.
2012-06-15 18:30:16 -07:00
Kohsuke Kawaguchi 06ec0c3dd8 doc improvement 2012-05-22 16:23:22 -07:00
bap2000 9d8f300179 Enable ant default excludes to be turned off.
Add a new overload method to list files that include the files that ant excludes by default.
2012-05-14 16:01:42 -07:00
David Reiss e15b2e19e3 [FIXED JENKINS-13202] Don't set mtime or mode on symlinks
Previously, the untar code tries to set the last modified time and mode
on every untarred file.  However, if the tar contains a broken symlink,
or a symlink that points to a file that has not been untarred yet, the
time/mode setting would fail on the broken symlink.

Symlinks don't have meaningful modified times or modes of their own, so
only set these values on non-symlinks.

Rename the file "a" in the test to expose the bug.
2012-05-08 14:52:52 -07:00
Jerome Lacoste 4aab81f823 Clean up FilePath. Extract one method out, and ensure closing of input stream after copy 2012-05-01 11:42:24 +02:00
Stephen Connolly c92c2217ec [FIXES JENKINS-13649] As FilePath(FilePath,String) expects multi-segment relative paths, we should ensure that the multiple segments are using the correct separator character for the remote OS 2012-05-01 09:21:39 +01:00
Kohsuke Kawaguchi 2dd70965a7 [FIXED JENKINS-9118]
WorkspaceSnapshot now uses the tar.gz format to handle symlinks
correctly.
2012-03-09 18:30:24 -08:00
Kohsuke Kawaguchi d184d53b24 [JENKINS-9118]
Tar/untar now correctly supports symlinks.
2012-03-09 18:26:22 -08:00
Jørgen P. Tjernø 60660095c5 Document parts of FilePath.
FilePath was a little lacking in documentation, this documents getRemote,
createTempFile, createTextTempFile and createTempDir.
2012-01-18 17:32:45 -08:00
Kohsuke Kawaguchi b5973a4a1d Merge branch 'master' of github.com:jenkinsci/jenkins 2012-01-04 12:18:51 -08:00
Christoph Kutzinski ce2c0c5a1b fixed some warnings 2011-12-30 16:51:32 +01:00
Christoph Kutzinski b4fe626f73 [JENKINS-11073] don't fail copyToWithPermissions if setting last-modified fails on Windows (more reliable detection of Windows platforms than before) 2011-12-30 16:51:32 +01:00
Kohsuke Kawaguchi 0d2c557533 clarified 2011-12-25 10:54:44 -08:00
Christoph Kutzinski 8755e59c9a [FIXED JENKINS-11073] handle failure to set timestamp on Windows platforms more gracefully - this time hopefully for real 2011-11-23 20:28:51 +01:00
Christoph Kutzinski a7ce870c1a [FIXED JENKINS-11073] handle failure to set timestamp on Windows platforms more gracefully 2011-11-12 17:28:02 +01:00
Craig P. Motlin 22b13104b3 Remove unnecessary interface modifiers. 2011-11-07 14:52:11 -08:00
Ciprian Ciubotariu f967feaca9 [JENKINS-9577] Fix last modification timestamp after unzip
Reordered operations in order to set the file modification time
after applying the permissions.
2011-09-28 03:12:47 +03:00
Kohsuke Kawaguchi 27c4dc8b58 Ant returns 0 if the archive doesn't record the access mode 2011-09-25 20:59:18 -07:00
Kohsuke Kawaguchi beb166680e [JENKINS-5271] https wants to join the party 2011-09-18 16:17:44 -07:00
Seiji Sogabe 9207c21f37 [FIXED JENKINS-5271] Tools download does not appear to respect proxy settings. 2011-09-18 16:16:38 -07:00
Ciprian Ciubotariu 37a22a1cac [FIXED JENKINS-9577] Apply file permissions from zip archives
Using the zip support classes just like Ant does in order to apply
permissions. As a side-effect, remote streams need to be stored in a
temporary file before actually unzipping them.
2011-09-12 18:18:19 -07:00
Kohsuke Kawaguchi 552741c980 [FIXED JENKINS-10805] preserve the timestampa as well as permissions 2011-08-24 12:02:14 -07:00
Christoph Kutzinski 4203060463 added some JavaDoc 2011-07-24 10:31:09 +02:00
Nigel Magnay 5679d019ec Move hudson.model.Jenkins to be jenkins.model.Jenkins - part II
Just import changes, from hudson.model.Jenkins -> jenkins.model.Jenkins,
and Javadoc comments.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
2011-05-29 11:06:28 +01:00
Nigel Magnay 70c1065814 Stage 1 : Create hudson.model.Jenkins, make Hudson derive from Jenkins.
Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>
2011-05-29 11:00:58 +01:00
bap2000 1ead9d3d3c Add since tag to FilePath.list(includes, excludes) 2011-05-18 18:20:13 +01:00
Kohsuke Kawaguchi fc5aa88b66 handle legacy slave.jar gracefully 2011-05-10 16:21:10 -07:00
Kohsuke Kawaguchi 6577d788b9 [FIXED JENKINS-9397] fixed a bug in the implementation, added tests. 2011-04-15 17:25:12 -07:00
bap2000 5cbe17973b Add method to list with excludes 2011-04-10 14:29:55 +01:00
Kohsuke Kawaguchi c3fc09939c [FIXED JENKINS-7871] Fixed a race condition in FilePath.copyTo
that results in missing tail bits when the master is heavily loaded.
2011-03-14 13:31:58 -07:00
alanharder ebf4146584 [FIXED JENKINS-8802] Allow use of FilePath.validateFileMask and validateFilePath
from global level (not in a job config page).  Require admin permission for this.
Based on patch from bap.
2011-02-15 16:38:50 -08:00
Dave Brosius 6bd3f83cb1 remove needless null check, subject isn't null (from above) 2011-02-05 19:21:57 -05:00
rseguy c490e884bc [HUDSON-8155] handled NoClassDefFoundError 2011-01-11 14:01:27 +01:00