-
Bug
-
Resolution: Fixed
-
Minor
This is what happens when you run this test on Windows:
=== Starting testResultsAndAggregatedTestResults(hudson.tasks.test.AggregatedTestResultPublisherTest) 0.044 [id=14] INFO o.jvnet.hudson.test.WarExploder#explode: Picking up existing exploded jenkins.war at D:\Projekty\junit-plugin\target\jenkins-for-test 0.319 [id=14] INFO o.jvnet.hudson.test.JenkinsRule#createWebServer: Running on http://localhost:62331/jenkins/ Loading $JENKINS_HOME from D:\Projekty\junit-plugin\target\test-classes\hudson\tasks\test\AggregatedTestResultPublisherTest.zip 0.834 [id=21] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization 4.669 [id=28] INFO hudson.PluginManager$1$3$1#isDuplicate: Ignoring C:\Users\Daniel\AppData\Local\Temp\hudson5096055080329673049tmp\junit.jpi because C:\Users\Daniel\AppData\Local\Temp\hudson5096055080329673049tmp\the.jpl is already loaded 5.130 [id=21] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins 6.899 [id=27] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins 6.901 [id=21] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins 6.905 [id=21] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions 7.933 [id=35] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs 8.406 [id=31] INFO o.j.main.modules.sshd.SSHD#start: Started SSHD at port 62356 8.406 [id=34] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization 9.418 [id=62] WARNING hudson.Util#warnWindowsSymlink: Symbolic links enabled on this platform but disabled for this user; run as administrator or use Local Security Policy > Security Settings > Local Policies > User Rights Assignment > Create symbolic links 10.006 [id=39] INFO hudson.model.Run#execute: aggregated #1 main build action completed: FAILURE 10.244 [id=14] INFO jenkins.model.Jenkins#cleanUp: Stopping Jenkins 10.256 [id=14] INFO jenkins.model.Jenkins$21#onAttained: Started termination 10.261 [id=14] INFO jenkins.model.Jenkins$21#onAttained: Completed termination 10.262 [id=14] INFO jenkins.model.Jenkins#_cleanUpDisconnectComputers: Starting node disconnection 10.270 [id=70] INFO h.TcpSlaveAgentListener$ConnectionHandler#run: Accepted connection #1 from /192.168.99.1:62373 10.272 [id=14] INFO jenkins.model.Jenkins#_cleanUpShutdownPluginManager: Stopping plugin manager 10.273 [id=14] INFO jenkins.model.Jenkins#_cleanUpPersistQueue: Persisting build queue WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked. WARN: Please see http://www.slf4j.org/codes.html#release for an explanation. 10.277 [id=14] INFO jenkins.model.Jenkins#_cleanUpAwaitDisconnects: Waiting for node disconnection completion 10.277 [id=14] INFO jenkins.model.Jenkins#cleanUp: Jenkins stopped java.lang.AssertionError: unexpected build status; build log was: ------ Legacy code started this job. No cause information is available Building in workspace C:\Users\Daniel\AppData\Local\Temp\jenkinsTests.tmp\jenkins1232321267331737548test\jobs\aggregated\workspace [workspace] $ sh -xe C:\Users\Daniel\AppData\Local\Temp\hudson252740542891993629.sh FATAL: command execution failed java.io.IOException: Cannot run program "sh" (in directory "C:\Users\Daniel\AppData\Local\Temp\jenkinsTests.tmp\jenkins1232321267331737548test\jobs\aggregated\workspace"): CreateProcess error=2, Nie można odnaleźć określonego pliku at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at hudson.Proc$LocalProc.<init>(Proc.java:240) at hudson.Proc$LocalProc.<init>(Proc.java:212) at hudson.Launcher$LocalLauncher.launch(Launcher.java:815) at hudson.Launcher$ProcStarter.start(Launcher.java:381) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:95) at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:64) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.io.IOException: CreateProcess error=2, Nie można odnaleźć określonego pliku at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(ProcessImpl.java:386) at java.lang.ProcessImpl.start(ProcessImpl.java:137) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 15 more Build step 'Execute shell' marked build as failure Recording fingerprints Recording test results ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did leafNodes run? For example, C:\Users\Daniel\AppData\Local\Temp\jenkinsTests.tmp\jenkins1232321267331737548test\jobs\aggregated\workspace\TEST-hudson.model.AbstractBuildTest.xml is 4 yr 2 mo old Warning: ‘Access Control for Builds’ in global security configuration is empty, so falling back to legacy behavior of permitting any downstream builds to be triggered Finished: FAILURE
The reason is that Shell is used to add fingerprint to test job, but on Windows batch command should be used.
Line 184:
project.getBuildersList().add(new Shell("echo $BUILD_NUMBER " + contents[i] + " > " + files[i]));
I will provide fix soon
EDIT: