0

我将 jenkins 的git 插件的源代码带入了 eclipse(kepler)。然后我给了一个maven clean。但是在清理之后我得到了以下错误:

The method `configRoundtrip`(FreeStyleProject) is ambiguous for the type GitSCMTest

该 java文件GitSCMTest.java位于hudson.plugins.git.src/test/java

当我尝试让 maven clean 控制台说,

Failed to load class SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Jenkins GIT plugin 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ git ---
[INFO] Deleting D:\CI\git-plugin-master\target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.304s
[INFO] Finished at: Tue Oct 22 15:59:47 IST 2013
[INFO] Final Memory: 6M/150M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project git: Failed to clean project: Failed to delete D:\CI\git-plugin-master\target\surefire\surefirebooter9216743649885094480.jar -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

通过从源文件夹中删除目标文件夹,上述错误得到解决。但是现在,当我说 maven install 时,我得到了这些错误,

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Jenkins GIT plugin 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-hpi-plugin:1.96:validate (default-validate) @ git ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0-beta-1:display-info (default) @ git ---
[INFO] Maven Version: 3.0.4
[INFO] JDK Version: 1.7.0_07 normalized as: 1.7.0-7
[INFO] OS Info: Arch: amd64 Family: windows Name: windows 7 Version: 6.1
[INFO] 
[INFO] --- maven-localizer-plugin:1.14:generate (default) @ git ---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ git ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 106 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ git ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- access-modifier-checker:1.4:enforce (default-enforce) @ git ---
[INFO] 
[INFO] --- bridge-method-injector:1.4:process (default) @ git ---
[INFO] 
[INFO] --- maven-hpi-plugin:1.96:insert-test (default-insert-test) @ git ---
[INFO] 
[INFO] --- gmaven-plugin:1.3:generateTestStubs (test-in-groovy) @ git ---
[INFO] No sources found for Java stub generation
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ git ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ git ---
[INFO] Compiling 1 source file to D:\CI\git-plugin-master\target\test-classes
[INFO] 
[INFO] --- maven-hpi-plugin:1.96:test-hpl (default-test-hpl) @ git ---
[INFO] Generating D:\CI\git-plugin-master\target\test-classes\the.hpl
[INFO] 
[INFO] --- maven-hpi-plugin:1.96:resolve-test-dependencies (default-resolve-test-dependencies) @ git ---
[INFO] 
[INFO] --- gmaven-plugin:1.3:testCompile (test-in-groovy) @ git ---
[INFO] No sources found to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ git ---
[INFO] Surefire report directory: D:\CI\git-plugin-master\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running hudson.plugins.git.browser.BitbucketWebTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.059 sec
Running hudson.plugins.git.browser.BrowserChooserTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.311 sec
Running hudson.plugins.git.browser.GithubWebTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running hudson.plugins.git.browser.GitoriousWebTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running hudson.plugins.git.browser.KilnGitTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running hudson.plugins.git.browser.RedmineWebTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running hudson.plugins.git.browser.RhodeCodeTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running hudson.plugins.git.browser.ViewGitWebTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running hudson.plugins.git.GitChangeLogParserTest
Exploding jenkins.war at C:\Users\msb4kor\.m2\repository\org\jenkins-ci\main\jenkins-war\1.480\jenkins-war-1.480-war-for-test.jar
Oct 22, 2013 9:15:53 PM org.mortbay.log.Slf4jLog info
INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
Oct 22, 2013 9:15:53 PM org.mortbay.log.Slf4jLog info
INFO: jetty-6.1.25
Oct 22, 2013 9:15:53 PM org.mortbay.log.Slf4jLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Oct 22, 2013 9:15:53 PM org.mortbay.log.Slf4jLog info
INFO: Copy D:\CI\git-plugin-master\target\jenkins-for-test to C:\Users\msb4kor\AppData\Local\Temp\Jetty_0_0_0_0_0_jenkins.for.test___.bj8wp3\webapp
Oct 22, 2013 9:15:59 PM org.mortbay.log.Slf4jLog info
INFO: Started SocketConnector@0.0.0.0:55230
Oct 22, 2013 9:15:59 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Oct 22, 2013 9:16:15 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Oct 22, 2013 9:16:15 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Oct 22, 2013 9:16:15 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Oct 22, 2013 9:16:15 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Oct 22, 2013 9:16:15 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Oct 22, 2013 9:16:15 PM net.java.sezpoz.Index$LazyIndexIterator peek
WARNING: possible endless loop getting index for interface hudson.Extension from classLoader hudson.PluginManager$UberClassLoader
Oct 22, 2013 9:16:16 PM net.java.sezpoz.Index$LazyIndexIterator peek
WARNING: possible endless loop getting index for interface hudson.Extension from classLoader hudson.PluginManager$UberClassLoader
Oct 22, 2013 9:16:17 PM net.java.sezpoz.Index$LazyIndexIterator peek
WARNING: possible endless loop getting index for interface hudson.Extension from classLoader hudson.PluginManager$UberClassLoader
Oct 22, 2013 9:16:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Oct 22, 2013 9:16:19 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 55232
Oct 22, 2013 9:16:19 PM org.mortbay.log.Slf4jLog info
INFO: jetty-6.1.25
Oct 22, 2013 9:16:19 PM org.mortbay.log.Slf4jLog info
INFO: Started SocketConnector@0.0.0.0:55233
=== Starting GitChangeLogParserTest.testDuplicatesFiltered
Oct 22, 2013 9:16:19 PM org.mortbay.log.Slf4jLog info
INFO: Stopped SocketConnector@0.0.0.0:55230
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping external-monitor-job
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping ldap
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping pam-auth
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping ant
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping javadoc
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping credentials
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping cvs
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping ssh-credentials
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping ssh-agent
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping git-client
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping token-macro
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping maven-plugin
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping multiple-scms
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping subversion
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping parameterized-trigger
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping promoted-builds
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping scm-api
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping ssh-slaves
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping translation
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping ui-samples-plugin
Oct 22, 2013 9:16:20 PM hudson.PluginWrapper stop
INFO: Stopping git
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 35.392 sec
Running hudson.plugins.git.GitChangeSetTest

并且以类似的方式,测试继续对数百个其他类进行。最后以,

.
.
.
Oct 22, 2013 9:27:47 PM hudson.PluginWrapper stop
INFO: Stopping git
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.754 sec
Running InjectedTest
Oct 22, 2013 9:27:48 PM org.mortbay.log.Slf4jLog info
INFO: jetty-6.1.25
Oct 22, 2013 9:27:48 PM org.mortbay.log.Slf4jLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Oct 22, 2013 9:27:48 PM org.mortbay.log.Slf4jLog info
INFO: Copy D:\CI\git-plugin-master\target\jenkins-for-test to C:\Users\msb4kor\AppData\Local\Temp\Jetty_0_0_0_0_0_jenkins.for.test___.bj8wp3\webapp
Oct 22, 2013 9:27:54 PM org.mortbay.log.Slf4jLog info
INFO: Started SocketConnector@0.0.0.0:55681
Oct 22, 2013 9:27:54 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Oct 22, 2013 9:27:54 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Oct 22, 2013 9:27:54 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Oct 22, 2013 9:27:54 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Oct 22, 2013 9:27:54 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Oct 22, 2013 9:27:54 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Oct 22, 2013 9:27:54 PM net.java.sezpoz.Index$LazyIndexIterator peek
WARNING: possible endless loop getting index for interface hudson.Extension from classLoader hudson.PluginManager$UberClassLoader
Oct 22, 2013 9:27:55 PM net.java.sezpoz.Index$LazyIndexIterator peek
WARNING: possible endless loop getting index for interface hudson.Extension from classLoader hudson.PluginManager$UberClassLoader
Oct 22, 2013 9:27:55 PM net.java.sezpoz.Index$LazyIndexIterator peek
WARNING: possible endless loop getting index for interface hudson.Extension from classLoader hudson.PluginManager$UberClassLoader
Oct 22, 2013 9:27:57 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Oct 22, 2013 9:27:57 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 55682
Oct 22, 2013 9:27:58 PM org.mortbay.log.Slf4jLog info
INFO: Stopped SocketConnector@0.0.0.0:55681
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping external-monitor-job
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping ldap
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping pam-auth
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping ant
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping javadoc
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping credentials
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping cvs
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping ssh-credentials
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping ssh-agent
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping git-client
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping token-macro
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping maven-plugin
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping multiple-scms
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping subversion
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping parameterized-trigger
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping promoted-builds
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping scm-api
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping ssh-slaves
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping translation
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping ui-samples-plugin
Oct 22, 2013 9:27:59 PM hudson.PluginWrapper stop
INFO: Stopping git
Oct 22, 2013 9:27:59 PM org.mortbay.log.Slf4jLog info
INFO: jetty-6.1.25
Oct 22, 2013 9:27:59 PM org.mortbay.log.Slf4jLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Oct 22, 2013 9:27:59 PM org.mortbay.log.Slf4jLog info
INFO: Copy D:\CI\git-plugin-master\target\jenkins-for-test to C:\Users\msb4kor\AppData\Local\Temp\Jetty_0_0_0_0_0_jenkins.for.test___.bj8wp3\webapp
Oct 22, 2013 9:28:05 PM org.mortbay.log.Slf4jLog info
INFO: Started SocketConnector@0.0.0.0:55684
Oct 22, 2013 9:28:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Oct 22, 2013 9:28:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Oct 22, 2013 9:28:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Oct 22, 2013 9:28:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Oct 22, 2013 9:28:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Oct 22, 2013 9:28:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Oct 22, 2013 9:28:05 PM net.java.sezpoz.Index$LazyIndexIterator peek
WARNING: possible endless loop getting index for interface hudson.Extension from classLoader hudson.PluginManager$UberClassLoader
Oct 22, 2013 9:28:06 PM net.java.sezpoz.Index$LazyIndexIterator peek
WARNING: possible endless loop getting index for interface hudson.Extension from classLoader hudson.PluginManager$UberClassLoader
Oct 22, 2013 9:28:06 PM net.java.sezpoz.Index$LazyIndexIterator peek
WARNING: possible endless loop getting index for interface hudson.Extension from classLoader hudson.PluginManager$UberClassLoader
Oct 22, 2013 9:28:07 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Oct 22, 2013 9:28:07 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 55685
=== Starting CliSanityTest.testCliSanity
Oct 22, 2013 9:28:07 PM org.mortbay.log.Slf4jLog info
INFO: Stopped SocketConnector@0.0.0.0:55684
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping external-monitor-job
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping ldap
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping pam-auth
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping ant
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping javadoc
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping credentials
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping cvs
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping ssh-credentials
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping ssh-agent
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping git-client
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping token-macro
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping maven-plugin
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping multiple-scms
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping subversion
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping parameterized-trigger
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping promoted-builds
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping scm-api
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping ssh-slaves
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping translation
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping ui-samples-plugin
Oct 22, 2013 9:28:07 PM hudson.PluginWrapper stop
INFO: Stopping git
Tests run: 31, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.977 sec

Results :

Failed tests:   testMergeAndPushWithSkipTagEnabled(hudson.plugins.git.GitPublisherTest): commitFileBase file not found in workspace
  testMatrixBuild(hudson.plugins.git.GitPublisherTest): unexpected build status; build log was:(..)
  testMergeAndPush(hudson.plugins.git.GitPublisherTest): commitFileBase file not found in workspace
  testBasicRemotePoll(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testEmailCommitter(hudson.plugins.git.GitSCMTest): class hudson.plugins.git.GitSCM is missing its descriptor
  testBasicExcludedRegion(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testIncludedRegionWithDeeperCommits(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testFetchFromMultipleRepositories(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testBasic(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testMerge(hudson.plugins.git.GitSCMTest): commitFileBase file not found in workspace
  testMultipleBranchBuild(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testBasicIncludedRegion(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testBasicExcludedUser(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testMergeFailed(hudson.plugins.git.GitSCMTest): commitFileBase file not found in workspace
  testSubmoduleFixup(hudson.plugins.git.GitSCMTest): unexpected build status; build log was:(..)
  testCheckoutToSpecificBranch(hudson.plugins.git.GitSCMTest): unexpected build status; build log was:(..)
  testNodeEnvVarsAvailable(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testBasicInSubdir(hudson.plugins.git.GitSCMTest)
  testBranchIsAvailableInEvironment(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testAuthorOrCommitterTrue(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testEnvironmentVariableExpansion(hudson.plugins.git.GitSCMTest): a.txt file not found in workspace
  testBasicWithSlave(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testExcludedRegionMultiCommit(hudson.plugins.git.GitSCMTest): initialFile file not found in workspace
  testAuthorOrCommitterFalse(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testBasicWithSlaveNoExecutorsOnMaster(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testMergeWithSlave(hudson.plugins.git.GitSCMTest): commitFileBase file not found in workspace
  testPleaseDontContinueAnyway(hudson.plugins.git.GitSCMTest): unexpected build status; build log was:(..)
  testGitSCMCanBuildAgainstTags(hudson.plugins.git.GitSCMTest): class hudson.plugins.git.util.DefaultBuildChooser is missing its descriptor
  testNewCommitToUntrackedBranchDoesNotTriggerBuild(hudson.plugins.git.GitSCMTest): commitFile1 file not found in workspace
  testMergeFailedWithSlave(hudson.plugins.git.GitSCMTest): commitFileBase file not found in workspace
  testDoNotifyCommitWithOneBranch(hudson.plugins.git.GitStatusTest): (..)
  testDoNotifyCommitWithTwoBranches(hudson.plugins.git.GitStatusTest): (..)
  testDoNotifyCommitWithNoBranches(hudson.plugins.git.GitStatusTest): (..)
  testBasic(hudson.plugins.git.MultipleSCMTest): unexpected build status; build log was:(..)

Tests run: 146, Failures: 34, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:44.965s
[INFO] Finished at: Tue Oct 22 21:28:08 IST 2013
[INFO] Final Memory: 32M/322M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project git: There are test failures.
[ERROR] 
[ERROR] Please refer to D:\CI\git-plugin-master\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
4

1 回答 1

0

“configRoundtrip(FreeStyleProject) 对于 GitSCMTest 类型不明确”当然是一个问题,并且已经存在了几年。GitSCMTest 的类层次结构充满了多级泛型,恕我直言,这是问题的根源。无论如何,如果您将 GitSCMTest.java 中的违规行更改为:

configRoundtrip((Item)p);

那么错误应该消失。

于 2014-07-09T09:29:41.310 回答