[ 
https://issues.jenkins-ci.org/browse/JENKINS-12768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159981#comment-159981
 ] 

Christian Wolfgang commented on JENKINS-12768:
----------------------------------------------

I have a similar problem. I have the following unit test:

{code}
FreeStyleProject project = createFreeStyleProject( "drmemory" );

final InputStream in = getClass().getClassLoader().getResourceAsStream( 
"results.txt" );

/* To get the real workspace and copy the results.txt */
project.getBuildersList().add(new TestBuilder() {
    public boolean perform(AbstractBuild<?, ?> build, Launcher launcher,
        BuildListener listener) throws InterruptedException, IOException {
        build.getWorkspace().child("drmemory").child( "1" ).child( 
"results.txt" ).copyFrom( in );
        return true;
    }
});

Builder builder = new DrMemoryBuilder( "", "", "drmemory" );
project.getBuildersList().add( builder );
                
DrMemoryPublisher publisher = new DrMemoryPublisher();
project.getPublishersList().add( publisher );
                
FreeStyleBuild b = project.scheduleBuild2( 0, new Cause.UserIdCause() ).get();
{code}

which results in a "Failed to clean up temp dirs" error, because the publisher 
copies the file "drmemory/1/results.txt" to the builds folder and it is unable 
to delete that file.
                
> Building Jenkins on Windows fails with test errors
> --------------------------------------------------
>
>                 Key: JENKINS-12768
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12768
>             Project: Jenkins
>          Issue Type: Bug
>          Components: core
>         Environment: Windows 7 x64 Ultimate
> javac 1.6.0_30 64-bit
> Jenkins 1.452
>            Reporter: Slide-O-Mix
>            Assignee: Kohsuke Kawaguchi
>
> Running jenkins.RemotingJarSignatureTest
> Verifying 
> C:\Users\USER\.m2\repository\org\jenkins-ci\main\remoting\2.12\remoting-2.12.jar
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec
> Results :
> Failed tests:   
> testRotation(hudson.util.io.ReopenableRotatingFileOutputStreamTest): 
> expected:<Content[4]> but was:<Content[2]>
> Tests in error:
>   testCopyTo2(hudson.FilePathTest): remote file operation failed: 
> C:\Users\USER\Code\jenkins\jenkins\core\target\testCopyTo6068700686750233812 
> at hudson.remoting.Channel@17094d48:The other side of the channel
>   testRemoting(hudson.util.ProcessTreeTest): Failed to read environment 
> variable table error=299 at .\envvar-cmdline.cpp:114
>   testIsSymlink(hudson.UtilTest): got: <false>, expected: is <true>
> Tests run: 2429, Failures: 1, Errors: 3, Skipped: 0
> The testCopyTo2 test functions correctly on a 32-bit JDK, but the other tests 
> fail for the same reasons.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to