Commit Graph
407 Commits
Author SHA1 Message Date
Oliver Gondža f18f89d6a0 Avoid deprecated junit.framework.Assert, use org.junit.Assert instead 2013-08-01 15:50:42 +02:00
Larry North 3376cf0158 [FIXED JENKINS-16660] Allow variable names with dots in bracketed references.
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.
2013-07-26 21:15:51 -07:00
Vincent Latombe 8b9394dd69 Refactor ListView to allow to set includeRegex programmatically 2013-07-20 10:56:19 +02:00
Kohsuke Kawaguchi bf80986734 Replacing org.kohsuke.gmaven by org.codehaus.gmaven 2013-07-17 17:49:56 -07:00
Oliver Gondža b8a580c9b3 Add unittests for Util.loadProperties 2013-07-09 16:59:31 +02:00
Christoph Kutzinski 95ac644029 fixed some warnings 2013-07-06 11:54:25 +02: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
limin wang b6e1aa0549 Fix ListJobsCommandTest failed on Windows by replace line ending 2013-06-25 14:53:40 +08:00
Kohsuke Kawaguchi 216f5c6a45 [FIXED JENKINS-18417]
FingerprintCleanupThread can now partially clean up a fingerprint record
by removing portions of it that's not referencing existing stuff.
2013-06-19 15:21:45 -07:00
Tim Lantz 7f67499141 [FIXED JENKINS-18368]: added Bug attributes 2013-06-18 06:38:38 -04:00
Tim Lantz d6ccf84eb4 [FIXED JENKINS-18368]: modified testcase asserts 2013-06-18 06:32:44 -04:00
Tim Lantz 656738c020 [JENKINS-18368] added isUnix override to launcher decorator classes so that isUnix is maintained for remote launcherswq 2013-06-16 23:23:49 -04:00
Oliver Gondža 1ef9cae2de [FIXED JENKINS-18367] Use non-zero return code in case list-jobs CLI command fails 2013-06-16 11:38:08 +02:00
Christoph Kutzinski f5895c479f Noting and minor clean up for 6b79233f13 2013-06-16 10:34:50 +02:00
Christoph Kutzinski 6b79233f13 Merge pull request #793 from olivergondza/list_jobs_recursively_fix
List Jobs recursively in hudson.cli.ListJobsCommand
2013-06-16 10:06:28 +02:00
Christoph Kutzinski 029701ce3d Merge pull request #645 from thesam/issue15380
[FIXED JENKINS-15380]. Add some length checking before trying to substring names in ClassResult.
2013-06-15 14:53:03 -07:00
Oliver Gondža 67827c7eaa Introduce View.getAllItems() 2013-06-15 23:15:56 +02:00
Jesse Glick b1c82f1e30 stephenc asks to use TODO rather than XXX 2013-06-10 11:53:13 -04:00
Jesse Glick 5903870d31 [JENKINS-18065] Documenting current misbehavior in a unit test. 2013-06-04 20:19:35 -04:00
Jesse Glick a5ac54eac8 [JENKINS-17713] Preparing unit and functional test coverage. 2013-05-29 12:50:45 -04:00
Jesse Glick 972d8bad22 [FIXED JENKINS-15652] “Solving” errors by just return null from ALLRM.search and reducing to one-line warnings.
@kohsuke confirms that the intent of throwing AIOOBE was to track down definite code errors;
but in at least some known occurrences of this bug, the problem is invalid data:
build records on disk with <number>s that are duplicated and/or out of order.
Since that violates the precondition of the class, we do not pretend to successfully search for such records.
At some point it would make sense to have the code detect anomalous conditions and initiate a builds folder cleanup.
Take only the last build of a given number, and discard any earlier with higher number.
I.e. just set <number> to 0 or something and ignore such builds, or rename build.xml to build-broken.xml.
2013-05-28 19:11:28 -04:00
Jesse Glick 787424881f [JENKINS-15652] Reproduced at least one assertion failure in a unit test. 2013-05-28 18:49:05 -04:00
Jesse Glick f1b513cf91 [JENKINS-16301] Need to create parent directory of fingerprint file too. 2013-05-28 17:56:43 -04:00
Oliver Gondža bdea18f5ca List Jobs recursively in hudson.cli.ListJobsCommand 2013-05-27 22:58:37 +02:00
Oliver Gondža 5457d1e8c3 Unittest hudson.cli.ListJobsCommand 2013-05-27 22:48:20 +02:00
Jesse Glick 8aed662390 [JENKINS-18074] Fixed unit test by making StubJob.getParent forgiving.
https://ci.jenkins-ci.org/job/jenkins_main_trunk/2545/testReport/junit/hudson.model/DisplayNameListenerTest/testOnCopied/
2013-05-24 13:47:29 -04:00
Vincent Latombe 16a3ddfe05 Merge branch 'master' into recurse-folders-maven-jobs-compat 2013-05-23 10:53:29 +02:00
Jesse Glick 41edc5867b [JENKINS-16301] Verifying current load/save implementation can round-trip fingerprints. 2013-05-22 17:20:43 -04:00
Jesse Glick 8d2e452336 [JENKINS-16301] Verifying current serial format as a baseline. 2013-05-21 21:39:44 -04:00
Jesse Glick 07280edc95 JUnit 4. 2013-05-21 19:19:27 -04:00
Jesse Glick b5d96e27dd [JENKINS-17030] Noting, fixing/adding @since, adding @Bug. 2013-05-21 14:07:10 -04:00
Jesse Glick e31b750c58 Merge pull request #767 from olivergondza/wbr_layout
[FIXED JENKINS-17030] Enable word breaking for job names.
2013-05-21 11:04:21 -07:00
Jesse Glick 84d1abdcd4 [FIXED JENKINS-17983] Empty LogRecorder.Target.name was not working. 2013-05-16 17:22:51 -04:00
Jesse Glick e1473e208c Missing equals/hashCode/toString impls for CopyOnWriteMap. 2013-05-13 10:20:00 -04:00
Jesse Glick 42fb9c7143 JUnit 4. 2013-05-13 10:09:49 -04:00
Oliver Gondža b26835ffeb [fixed JENKINS-7285] Use build parameters in combination filters
Based on the work of Michael Elkin [1].

[1] https://issues.jenkins-ci.org/secure/attachment/20588/0001-tag-1.414-for-parameters-in-multiconfig-filters.patch
2013-05-07 13:03:54 +02:00
Donny Nadolny d658f55c30 Add extension point to rewrite JUnit test names
This adds an extension point, TestNameTransformer, which is called to transform JUnit test case names.
This is useful for JVM languages like scala which are more flexible than java with identifier naming.
Scala, for example, allows you to write test names between back ticks, and then encodes the name using valid java identifiers.
This extension point would allow a plugin to transform those names back in to readable names when they are displayed on the test result page.
2013-05-02 14:03:03 -04:00
Kohsuke Kawaguchi 31eeb753aa merged back the RC branch 2013-05-01 20:37:34 -07:00
Jesse Glick 00d5e38759 [JENKINS-17681] Set up a test which passes on Unix but fails on Windows when symlinks are enabled on the platform but disabled for the current user. 2013-05-01 19:10:30 -04:00
Jesse Glick d482fc50fb [FIXED SECURITY-67] Forbid CSS links in markup to be on the safe side.(cherry picked from commit 1e19eb3ece) 2013-05-01 14:16:37 -07:00
Oliver Gondža 2c240bdc87 [FIXED JENKINS-17030] Enable word breaking for job names 2013-05-01 18:32:13 +02:00
ssogabe 55a68acca9 [FIXED JENKINS-17715] Display Name is not shown 2013-04-30 20:49:58 +09:00
Vincent Latombe 1dc289e2ee Prevent ClassCastException when encountering ItemGroup of
non-TopLevelItem.

This is the case for instance when encountering a MavenModuleSet which
is ItemGroup<MavenModule>
2013-04-29 10:17:36 +05:30
Vincent Latombe f6cc507217 Functions#getRelativeLinkTo now normalize the output url.
Added some unit tests
2013-04-10 11:27:10 +02:00
Jesse Glick e0a445c20e Merge pull request #745 from rhadman/JENKINS-16942
[FIXED JENKINS-16942] SecretRewriterTest failure on Windows 7
2013-04-03 15:47:59 -07:00
Jesse Glick d2603bedd5 Verifying that repeating hash syntax does something useful.
http://stackoverflow.com/questions/11896675/can-i-make-the-scm-polling-interval-for-jenkins-randomised/11898132#11898132
2013-04-03 11:51:21 -04:00
Andrew Mann 00b28d40e2 Merge branch 'master' into JENKINS-16942 2013-03-26 00:51:49 -05:00
Andrew Mann 398fa74da0 Replace \r\n with system property line.separator
Implementing change as suggested by vjuranek
2013-03-25 21:08:54 -05:00
Jesse Glick 7f92a9bd1a [JENKINS-17311] Improved hashify to detect manual skip idiom. 2013-03-25 13:34:49 -04:00
Kohsuke Kawaguchi 17e7d7a1e6 minor touch-up and documentation
as I was playing with it to understand what those logics mean.
2013-03-25 09:51:24 -07:00