Hi,

I get the following error when I try to use Eclipse as a IDE: "The method 
configRoundtrip(FreeStyleProject) is ambiguous for the type 
SCMCheckoutStrategyTest"

The error occurs here: 
jenkins-test-harness/src/main/java/jenkins/scm/SCMCheckoutStrategyTest.java:

/**
     * This should show the UI.
     */
    public void testConfigRoundtrip2() throws Exception {
        assertEquals(2,SCMCheckoutStrategyDescriptor.all().size());
        FreeStyleProject p = createFreeStyleProject();
        System.out.println(SCMCheckoutStrategyDescriptor.all());

        TestSCMCheckoutStrategy before = new TestSCMCheckoutStrategy();
        p.setScmCheckoutStrategy(before);
        configRoundtrip(p); <--- THE ERROR
        SCMCheckoutStrategy after = p.getScmCheckoutStrategy();
        assertNotSame(before,after);
        assertSame(before.getClass(), after.getClass());

        assertTrue(pageHasUI(p));
    }

It looks like the error is related to the one described in the thread "Trying 
to build Jenkins Core, but getting errors" but I am not sure. 

The project builds when I use Maven from the command line but it would be 
great if I could also build it through Eclipse without errors.

Regards
Esben

Reply via email to