- 24 9月, 2017 1 次提交
-
-
由 Robert Sandell 提交于
* A test to verify JENKINS-44657 is working in core * [JENKINS-44657] Move sub-job's buildsdir when outside of itemrootdir. * [JENKINS-44657] Fix UsageStatisticsTest Because we've added a test dependency that affects it. * [JENKINS-44657] Normalize the path before comparing * [JENKINS-44657] Use MockFolder instead of folders-plugin for tests * [JENKINS-44657] Document and annotate isDefaultBuildDir * [JENKINS-44657] isDescendant doesn't throw IOException any more * [JENKINS-44657] catch InvalidPathException and rethrow as IOException
-
- 19 4月, 2017 1 次提交
-
-
由 Stephen Connolly 提交于
- Plugins should really be expecting it, but as historically they have not, may as well convert to IOE for them
-
- 08 4月, 2017 1 次提交
-
-
由 Jesse Glick 提交于
* Clean up usages of IOUtils.closeQuietly and related calls predating Java 7. * Review comments from @oleg-nenashev. * Noticed another place where try-with-resources would protect against a potential leak.
-
- 20 3月, 2017 1 次提交
-
-
由 Stephen Connolly 提交于
-
- 07 3月, 2017 1 次提交
-
-
由 James Nord 提交于
-
- 13 12月, 2016 2 次提交
-
-
由 Jesse Glick 提交于
-
由 Jesse Glick 提交于
-
- 09 11月, 2016 1 次提交
-
-
由 Baptiste Mathus 提交于
-
- 16 10月, 2016 2 次提交
-
-
由 Daniel Beck 提交于
-
由 Oliver Gondža 提交于
* Avoid deprecated findbugs annotations * One more forgotten annotation
-
- 03 10月, 2016 1 次提交
-
-
由 Nicolas De Loof 提交于
-
- 09 9月, 2016 1 次提交
-
-
由 dbroady1 提交于
* Test Windows junctions before Java 7 symlink Apparently Java 7 (and later) do not count Windows junctions as symlinks. When you drill down into the BasicFileAttributes structure, reparse points are only counted under isOther. So, since we already have code that properly detects Windows Junctions, let's use that first and then fallback to the Java 7 code. * Add comment for change & link bug. * Add test case * Switch to Functions.isWindows(). * Use non-deprecated APIs for tmp file/dir mgmt * Add better debugging. * Allow spaces in junction name & dir name. To do that, it was easier to use ProcessBuilder vs building up the correct string in code to send to cmd.exe. Also, I'll note that according to http://ss64.com/nt/syntax-internal.html, mklink is in internal cmd.exe command. So, it must be invoked through "cmd.exe /c" for it to work. * Remove comment mentioning bug number. * Remove debugging output, per Baptiste's request * Add newline at end of file. * Make sure that the junction was removed. * Use assertEquals to show retcode of Process.waitFor. * Fix compilation errors by importing functions (cherry picked from commit f4edf917)
-
- 06 9月, 2016 1 次提交
-
-
由 Oleg Nenashev 提交于
* [JENKINS-37332] - Improve diagnostics of non-closed streams during reading of the manifests in PluginManager * [JENKINS-37332] - Leakless processing of JarUrlConnection during Manifest parsing * [JENKINS-37332] - Also implement leak-safe method for retrieving file modification date * [JENKINS-37332] - Add spotcheck methods for manifest file access + Javadoc * [JENKINS-37332] - Also test multi-line and empty attributes in the test (cherry picked from commit 96c97860)
-
- 22 8月, 2016 1 次提交
-
-
由 dbroady1 提交于
* Test Windows junctions before Java 7 symlink Apparently Java 7 (and later) do not count Windows junctions as symlinks. When you drill down into the BasicFileAttributes structure, reparse points are only counted under isOther. So, since we already have code that properly detects Windows Junctions, let's use that first and then fallback to the Java 7 code. * Add comment for change & link bug. * Add test case * Switch to Functions.isWindows(). * Use non-deprecated APIs for tmp file/dir mgmt * Add better debugging. * Allow spaces in junction name & dir name. To do that, it was easier to use ProcessBuilder vs building up the correct string in code to send to cmd.exe. Also, I'll note that according to http://ss64.com/nt/syntax-internal.html, mklink is in internal cmd.exe command. So, it must be invoked through "cmd.exe /c" for it to work. * Remove comment mentioning bug number. * Remove debugging output, per Baptiste's request * Add newline at end of file. * Make sure that the junction was removed. * Use assertEquals to show retcode of Process.waitFor. * Fix compilation errors by importing functions
-
- 21 8月, 2016 1 次提交
-
-
由 Oleg Nenashev 提交于
* [JENKINS-37332] - Improve diagnostics of non-closed streams during reading of the manifests in PluginManager * [JENKINS-37332] - Leakless processing of JarUrlConnection during Manifest parsing * [JENKINS-37332] - Also implement leak-safe method for retrieving file modification date * [JENKINS-37332] - Add spotcheck methods for manifest file access + Javadoc * [JENKINS-37332] - Also test multi-line and empty attributes in the test
-
- 16 7月, 2016 1 次提交
-
-
由 Oleg Nenashev 提交于
FindBugs: Suppress DM_GC in hudson.Util#pauseBetweenDeletes(), because it's a desired behavior for custom setting
-
- 12 7月, 2016 1 次提交
-
-
由 Pavel Janousek 提交于
* [JENKINS-35570] List of computer's names extracted to Util
-
- 21 5月, 2016 1 次提交
-
-
由 Oleg Nenashev 提交于
* [JENKINS-34854] - Migrate missing Integer and Boolean properties to SystemProperties * [JENKINS-34854] - API methods for Long variables * [JENKINS-34854] - Migrate Long settings to SystemProperties * [JENKINS-34854] - Leftover change (I should use Save All) * [JENKINS-34854] - Some fixes in Long methods Javadoc and log messages
-
- 27 4月, 2016 1 次提交
-
-
由 Daniel Beck 提交于
-
- 26 4月, 2016 1 次提交
-
-
由 Daniel Beck 提交于
-
- 14 4月, 2016 1 次提交
-
-
由 Baptiste Mathus 提交于
Simplify the code now the minimum version is Java 7.
-
- 12 4月, 2016 1 次提交
-
-
由 Baptiste Mathus 提交于
-
- 15 2月, 2016 1 次提交
-
-
由 Peter Darton 提交于
Renamed system property from ...deletionMax to ...maxFileDeletionRetries (as requested during code review).
-
- 13 2月, 2016 1 次提交
-
-
由 Peter Darton 提交于
FIXED JENKINS-15331 by changing Util.deleteContentsRecursive, Util.deleteFile and Util.deleteRecursive so that they can retry failed deletions. The number of deletion attempts and the time it waits between deletes are configurable via system properties (like hudson.Util.noSymlink etc). Util.DELETION_MAX is set by -Dhudson.Util.deletionMax. Default is 3 attempts. Util.WAIT_BETWEEN_DELETION_RETRIES is set by -Dhudson.Util.deletionRetryWait. Defaults is 100 milliseconds. Util.GC_AFTER_FAILED_DELETE is set by -Dhudson.Util.performGCOnFailedDelete. Default is false. Added unit-tests for new functionality.
-
- 19 11月, 2015 1 次提交
-
-
由 Johannes Ernst 提交于
* moved to jenkins.util.SystemProperties * consistent naming getString/getInteger/getBoolean * improved code formatting Improved JavaDoc
-
- 17 11月, 2015 1 次提交
-
-
由 Johannes Ernst 提交于
Accomplished by centralizing calls to System.getProperty(String) and related into new file SystemProperties.java. There, we first check for existence of system property; if not, we look for property in context.xml This is done for "application" properties (like hudson.DNSMultiCast.disabled) but not for java properties (like user.name)
-
- 05 10月, 2015 1 次提交
-
-
由 Antonio Muñiz 提交于
-
- 20 4月, 2015 1 次提交
-
-
由 David Hoover 提交于
-
- 21 3月, 2015 1 次提交
-
-
由 Stephen Connolly 提交于
-
- 19 3月, 2015 1 次提交
-
-
由 Stephen Connolly 提交于
-
- 09 10月, 2014 1 次提交
-
-
由 Daniel Beck 提交于
-
- 06 5月, 2014 1 次提交
-
-
由 Oleg Nenashev 提交于
Signed-off-by: NOleg Nenashev <o.v.nenashev@gmail.com>
-
- 04 5月, 2014 1 次提交
-
-
由 Oleg Nenashev 提交于
The change adds annotations for all methods inside the class. The initial idea - enforce checks of symlink methods to prevent NPEs on Windows platforms. Signed-off-by: NOleg Nenashev <o.v.nenashev@gmail.com>
-
- 16 11月, 2013 1 次提交
-
-
由 Marco Miller 提交于
Retrying 3 times while waiting for 100 millis between retries (at recreating symlink after "deleting" it). Ends up throwing FAE exception if thrown for a 4th time in a row - as not much can be done at that point. A warning is logged in that case, prior to throwing the last FAE.
-
- 15 11月, 2013 3 次提交
-
-
由 Jesse Glick 提交于
-
由 Jesse Glick 提交于
-
由 Jesse Glick 提交于
-
- 27 7月, 2013 1 次提交
-
-
由 Larry North 提交于
Given these <variable,value> mappings: <A,a> and <A.B,a-b>, $A.B would evaluate to $a.B, as it currently does, and ${A.B} to a-b instead of the current ${A.B}. Existing ${A.B}-like references will break (not evaluate to ${A.B}) if there actually is an A.B variable defined, which I think is very unlikely.
-
- 25 7月, 2013 2 次提交
-
-
由 Jesse Glick 提交于
[[JENKINS-16301] Use a buffered input stream to get somewhat better performance also from Maven archiving. Introducing Util.getDigestOf(File) as a convenience.
-
由 Jesse Glick 提交于
[FIXED JENKINS-18178] Reverting an inessential part of the fix of JENKINS-16301 since it broke some Maven builds. Apparently the Maven 2 process factory fails to adequately insulate the Maven process from Jenkins library dependencies; if you specify a build extension that can override dependencies used by Jenkins core classes! A real fix would involve changing class loader delegation, since presumably similar bugs could still occur.
-