【发布时间】:2017-09-12 05:06:01
【问题描述】:
我正在尝试使用 Jenkins 进行 maven 构建和更新版本。我无法更新项目版本,出现错误。如何解决这个问题?
Jenkins 版本:2.7.1 WAR Maven:3 Windows 7
<scm>
<connection>scm:git:git@github.com:username/test-app.git</connection>
<url>scm:git:git@github.com:username/test-app.git</url>
<developerConnection>scm:git:git@github.com:username/test-app.git</developerConnection>
</scm>
Maven 目标
-X 发布:清洁发布:准备发布:执行
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
错误
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project test-app: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] Host key verification failed.
[ERROR] fatal: Could not read from remote repository.
[ERROR]
[ERROR] Please make sure you have the correct access rights
[ERROR] and the repository exists.
[ERROR]
[ERROR] -> [Help 1]
【问题讨论】:
标签: maven github jenkins jenkins-pipeline