Commit Graph
636 Commits
Author SHA1 Message Date
Peter Darton f1e16504e9 ...and another missing import (same reason). 2016-02-12 16:57:01 +00:00
Peter Darton 4a6e998360 Fix missing import (caused by failed merge.) 2016-02-12 16:52:02 +00:00
Peter Darton 310c674762 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.
2016-02-12 16:22:35 +00:00
Jesse Glick d5167025a2 [FIXED JENKINS-22767] Make sure only one thread actually loads a given build. 2016-01-18 21:47:19 -05:00
Jesse Glick e61621c5b6 Skip the test if the tar or unzip commands are not available.
https://ci.jenkins-ci.org/job/jenkins_main_trunk/4400/testReport/junit/hudson.util.io/TarArchiverTest/permission/
2016-01-08 12:59:22 -05:00
Jesse Glick a5f871d8a1 Merge branch 'master' into security-master 2015-11-10 14:23:54 -05:00
Christopher Simons 7efb9090dd remove unused import statements
In addition to cluttering the namespace, unused imports generate
compiler warnings, introducing noise and obscuring more important
compiler warnings.  This change removes them.
2015-11-10 10:13:52 -05:00
Jesse Glick 8fafe3ff86 Merge branch 'security-stable-1.625' into security-master 2015-11-05 17:03:30 -05:00
Jesse Glick d0d728981a Merge branch 'security-stable-1.609' into security-stable-1.625 2015-11-04 18:20:43 -05:00
Valentina Armenise 6d15072f04 [security-184] solve NPE in testHandleTakeover 2015-11-03 20:08:14 +01:00
Valentina Armenise 223c301dce [security-184] solve NPE in test 2015-11-03 17:04:03 +01:00
Wilfred Hughes 707d4ba135 JENKINS-31217 Treat null as a default JDK name. 2015-11-02 10:18:18 +00:00
Kanstantsin Shautsou fff2e27537 Remove hardcode in tar test
(cherry picked from commit bfa6d8be0c)
2015-10-28 18:32:48 +01:00
Kanstantsin Shautsou fd1e392fd4 [FIXED JENKINS-10629] Unbroke stream with new tar implementation.
Causes bytes lost and truncated tar archive.
TarBuffer not used in TarArchiveOutputStream.

(cherry picked from commit 3e187a0264)
2015-10-28 18:32:31 +01:00
Oleg Nenashev 730d6ecb2d Merge pull request #1528 from Wilfred/better_default_text
[JENKINS-755] Describe the built-in JDK as '(System)'.
2015-10-24 14:11:35 +03:00
Oleg Nenashev 858849ef42 Noting JENKINS-5253 from https://github.com/jenkinsci/jenkins/pull/1429 2015-10-17 22:26:12 +03:00
Oleg Nenashev 4fd10ed723 Merge pull request #1429 from dominiquebrice/jenkins-5253b
[JENKINS-5253] Allow case insensitive patterns in Artifacts Archiving
2015-10-17 22:15:52 +03:00
tfennelly fe44f3eef0 Fixed build history pagination/search issues
Fix HistoryPageFileTest tests
Fix int parsing in JavaScript
Fix some JS glitches
2015-10-15 11:22:49 +01:00
tfennelly 727d77a403 Removed more advanced search options as requested by @daniel-beck 2015-10-09 14:59:40 +01:00
tfennelly 2ec3ffcd53 Merge branch 'master' into JENKINS-26445-pagination-search 2015-10-09 12:28:19 +01:00
Oleg Nenashev 6adbb33e6b Merge pull request #1804 from amuniz/JENKINS-30002
[JENKINS-30002] Improve Util.isOverridden
2015-10-05 12:05:25 +03:00
Antonio Muñiz 89a0050cea [JENKINS-30002] Improve Util.isOverridden 2015-10-05 10:13:42 +02:00
Oliver Gondža 3990384257 Do not skip tests silently 2015-10-01 08:58:31 +02:00
tfennelly a305e3dc93 Merge branch 'master' into JENKINS-26445-pagination-search
* master: (256 commits)
  Noting #1817
  Noting #1825
  updated changelog for release
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release jenkins-1.629
  [JENKINS-30139] Oleg wants to keep the data accessible so we have to go for immutable
  [JENKINS-30139] Forgot to change this one
  [JENKINS-30139] Add @Restricted to prevent external use of internal data
  [JENKINS-30139] Switch from a big fat lock to a concurrent collection
  [JENKINS-30374] Update obsolete help message
  updated changelog for release
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release jenkins-1.628
  noting merge of PR#1816 - use slf4j interceptors
  Manage commons-logging and log4j as provided, include slf4j adapters for tests.
  Exclude commons-logging and log4j in dangerous scopes compile and runtime in plugins as well.
  Only exclude commons-logging and log4j in dangerous scopes compile and runtime.
  Reintroduce enforcer rules as suggested by @jtnord.
  Document allBuilds for Job remote access API
  Include slf4j-jdk14 during tests.
  ...

Conflicts:
	war/src/main/webapp/scripts/hudson-behavior.js
2015-09-16 09:34:46 +01:00
Jesse Glick 2ec26c8ac6 Merge pull request #1802 from jpederzolli/master
[FIXED JENKINS-29989] Update RunIdMigrator to properly handle matrix and Maven jobs
(cherry picked from commit 3d7878ff76)
2015-09-10 16:23:44 +02:00
Kanstantsin Shautsou bfa6d8be0c Remove hardcode in tar test 2015-08-25 01:09:09 +03:00
Kanstantsin Shautsou 3e187a0264 [FIXED JENKINS-10629] Unbroke stream with new tar implementation.
Causes bytes lost and truncated tar archive.
TarBuffer not used in TarArchiveOutputStream.
2015-08-25 01:09:09 +03:00
Jesse Glick 434608ba38 [JENKINS-29790] Noting merge of #1783. 2015-08-24 08:59:50 -04:00
Kanstantsin Shautsou 79c0bbf766 Protect from race condition in Triggers
[FIXED JENKINS-29790] [FIXED JENKINS-29945]
2015-08-21 21:46:52 +03:00
John Pederzolli 60ebcfb3f1 Update RunIdMigrator to properly handle matrix and maven jobs
Properly revert job history for matrix and maven jobs (depending on
setup).

Examples paths include:

jobs/someproject/Environment=prod/builds
jobs/someproject/test$test/builds
2015-08-17 15:53:11 -07:00
Daniel Beck 3944c1f2c5 Merge pull request #1789 from vlajos/typofixes-vlajos-20150807
typofix - https://github.com/vlajos/misspell_fixer
2015-08-17 13:15:03 +02:00
Oliver Gondža 7add0d1646 Merge pull request #1793 from pjdarton/utiltest_enhancement
Improved unit test for Util.deleteFile & Util.deleteRecursive
2015-08-17 07:16:03 +02:00
Peter Darton 94efc7ba6a Improved unit test for Util.deleteFile(File)
Added unit test for Util.deleteRecursive(File)
2015-08-17 07:14:47 +02:00
Veres Lajos d58903558e typofix - https://github.com/vlajos/misspell_fixer 2015-08-11 16:34:13 +01:00
Oliver Gondža 4589ce5d66 Avoid "EmptyStackException: null" in Items#getCanonicalName 2015-08-04 09:33:41 +02:00
tfennelly b103e59238 Making @jtnord happy
ridiculous stuff
2015-07-08 15:08:09 +01:00
tfennelly 76841f9d7e Javadoc etc for @jtnord 2015-07-08 14:03:28 +01:00
tfennelly d703b10fd6 Added a simple isMultipart utility to MultipartFormDataParser 2015-07-08 13:16:11 +01:00
tfennelly 5dfe78d2fc Moved Build History pagination and search classes to jenkins as requested by @jglick
I understand the motivation for this but I think it creates a bit of a maint/comprehension issue in that splits related classes across 2 different package hierarchies. I know we'll say that's ok but I don't like it. Just say'n.
2015-06-25 18:32:42 +01:00
tfennelly 7c28ed8b7d Moved Mock Queue.Item out into test/java
Not sure why I ever had it in Queue.MockItem. I must have wrongly though it was private/protected in some way that did not allow it to live anywhere else.
2015-06-25 18:32:42 +01:00
tfennelly 078d3c7c4b Build history pagination and search 2015-06-25 18:32:42 +01:00
Oliver Gondža b6bff4f2c0 [JENKINS-28041] fix failing unittest 2015-06-09 13:10:46 +02:00
Oleg Nenashev 4c11691a8f [JENKINS-28419] - Direct unit tests for JenkinsLocationConfiguration::adminAddress setter and getter
(cherry picked from commit dab392f80f)
2015-06-08 21:15:20 +02:00
David Hoover 41dd74dd43 DefaultJnlpSlaveReceiver should return true when rejecting a takeover.
The contract for JnlpAgentReceiver in case of error on a claimed node is
to call handshake.error() but still return true so other handlers don't
take another crack a it.

Also added unit tests DefaultJnlpSlaveReceiver.

(cherry picked from commit 2d452b6eb3)
2015-06-08 20:07:14 +02:00
vb-linetco 61681d1d15 avoid IndexOutOfBoundsException when called with 0
return an empty list when called with maxLines = 0
added unit test for getLog(0) returning an empty list

(cherry picked from commit 75f58103d4)
2015-06-08 18:29:51 +02:00
Oleg Nenashev 7e4171ca5b Merge pull request #1707 from oleg-nenashev/jenkins_local_config
[FIXED JENKINS-28419] - JenkinsLocationConfiguration::adminAddress can be reset
2015-05-25 10:48:49 +03:00
Oleg Nenashev 73e151f3d1 Merge pull request #1672 from productsupcom/JENKINS-9283
[JENKINS-9283] Timezone Support for Scheduling
2015-05-21 08:48:08 +03:00
Boris 6b4d044ae0 JENKINS-9283 - Allow timezone definition in scheduler 2015-05-19 07:53:47 +03:00
Oleg Nenashev dab392f80f [JENKINS-28419] - Direct unit tests for JenkinsLocationConfiguration::adminAddress setter and getter 2015-05-16 14:25:45 +03:00
Oleg Nenashev 9a3e5518ba Merge pull request #1649 from deadmoose/follow_the_api_rules
[FIXED JENKINS-27939] - DefaultJnlpSlaveReceiver should return true when rejecting a takeover.
2015-05-16 12:55:00 +03:00