詹金斯与Subversion [英] Jenkins with Subversion
本文介绍了詹金斯与Subversion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
/bin/sh: svn: command not found
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to check for local modifications
Provider message:
The svn command failed.
即使已经安装了"Subversion插件",Jenkins也找不到Subversion.
Jenkins could not find Subversion even though the "Subversion Plugin" is already installed.
推荐答案
此错误的原因是,您必须在pom.xml中明确定义maven-release-plugin应该使用svnkit.
The reason for this error is that you have to define explicitly in the pom.xml that the maven-release-plugin should use svnkit.
方法如下:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<goals>clean install</goals>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>2.0.5</version>
<scope>compile</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
这篇关于詹金斯与Subversion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文