0
我正在使用Maven發佈插件爲了在SVN中標記我的項目。我運行詹金斯工作具有以下Maven目標:Maven發佈插件。無法標記分支
-Pmake-tag release:clean release:prepare -sbuild/deploy-settings.xml -Dresume=false
我的pom.xml
<profile>
<id>make-tag</id>
<modules>
<module>../common-core</module>
<module>../htdocs</module>
<module>../deployer</module>
<module>../configuration</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.4</version>
<configuration>
<preparationGoals>validate</preparationGoals>
<!-- <tagBase>svn:http://172.16.71.2:8080/repos/DMC/Copyright2/tags/</tagBase> -->
<useEditMode>true</useEditMode>
<autoVersionSubmodules>true</autoVersionSubmodules>
<updateWorkingCopyVersions>false</updateWorkingCopyVersions>
<tagNameFormat>rel-${env.REL_TAG}</tagNameFormat>
<username>${env.SCM_USER}</username>
<password>${env.SCM_PASSWD}</password>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<build>
...
<scm>
<developerConnection>scm:svn:http://<svn_ip>:8080/repos/DMC/Copyright2</developerConnection>
<connection>scm:svn:http://<svn_ip>:8080/repos/DMC/Copyright2</connection>
<url>scm:svn:http://<svn_ip>:8080/repos/DMC/Copyright2</url>
</scm>
</build>
當我運行詹金斯工作我有錯誤
[INFO] Executing: cmd.exe /X /C "svn --username jenkins --password ***** --no-auth-cache --non-interactive copy --file C:\Windows\TEMP\maven-scm-756812364.commit --revision 51859 http://<svn_ip>:8080/repos/DMC scm:svn:http://<svn_ip>:8080/repos/DMC/MyProject/tags/rel-99346"
[INFO] Working directory: C:\Program Files (x86)\Jenkins\jobs\MyJob\workspace
[JENKINS] Archiving disabled
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: E020024: Error resolving case of 'scm:svn:http:\\<svn_ip>:8080\repos\DMC\MyProject\tags\rel-99346'
althougth日誌輸出的所有斜槓是\在pom.xml中,url設置正確。 很樂意獲得幫助。
你可以運行它手動(詹金斯之外)? –
是的。我有同樣的錯誤 –
好吧,所以這不是詹金斯的錯誤。這是一個svn和/或maven錯誤。 ....或您的服務器URL是錯誤的。 –