我正在进行构建项目时遇到错误。 在jenkins中,我已经给了git url来获取代码..并且它获取代码但是在jenkins控制台中执行了几个步骤之后它显示错误
Parsing POMs
[ushell-selenium-tests] $ /usr/java/jdk1.7.0_79/bin/java -cp /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.5.jar:/usr/maven/apache-maven-3.3.3/boot/plexus-classworlds-2.5.2.jar:/usr/maven/apache-maven-3.3.3/conf/logging jenkins.maven3.agent.Maven31Main /usr/maven/apache-maven-3.3.3 /usr/apache/apache-tomcat-8.0.24/webapps/jenkins/WEB-INF/lib/remoting-2.52.jar /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.5.jar /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.5.jar 46554
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /root/.jenkins/jobs/Project 32 test ushell 1 fb_search_app selenium/workspace/ushell-selenium-tests/pom.xml install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.sap.ushell:ushell-selenium-tests:jar:1.33.0-SNAPSHOT
[WARNING] 'dependencies.dependency.scope' for org.testng:testng:jar must be one of [provided, compile, runtime, test, system] but is 'integration-test'. @ line 63, column 10
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ushell-selenium-tests 1.33.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.988 s
[INFO] Finished at: 2015-10-01T16:24:45+02:00
[INFO] Final Memory: 15M/608M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known: Unknown host repo.maven.apache.org: Name or service not known -> [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/PluginResolutionException
[JENKINS] Archiving /root/.jenkins/jobs/Project 32 test ushell 1 fb_search_app selenium/workspace/ushell-selenium-tests/pom.xml to com.sap.ushell/ushell-selenium-tests/1.33.0-SNAPSHOT/ushell-selenium-tests-1.33.0-SNAPSHOT.pom
/root/.jenkins/jobs/Project 32 test ushell 1 fb_search_app selenium/workspace/ushell-selenium-tests/pom.xml is not inside /root/.jenkins/jobs/Project 32 test ushell 1 fb_search_app selenium/workspace/root/.jenkins/jobs/Project 32 test ushell 1 fb_search_app selenium/workspace/ushell-selenium-tests/; will archive in a separate pass
channel stopped
Finished: FAILURE
答案 0 :(得分:0)
我能够通过使用另一个Internet连接来解决“未知主机repo.maven.apache.org:名称或服务未知”错误。第一个安装了代理,不允许从存储库下载任何内容。