ソース管理ツールとして Mercurial (hg) を使用し、ビルド システムとして Maven を使用しています。
リリース プロセスの実行中に (versions-maven-plugin: versions:set -Dxxx=yyy versions:use-releases xxxxx yyy ターゲットを使用)、プロジェクトで有効なリリース ビルドを実行するための有効な pom ファイルを取得しました。
リリース ビルドが成功したら、次のステップは、変更されたファイル (バージョン プラグインによって変更された) をコミットすることです。私は maven-scm-plugin (scm:checkin および scm:tag) を使用しています。私のソース管理ツールは Mercurial/hg であるため、scm:xxx 操作は hg コマンドを呼び出します (svn やその他のツールの代わりに - 参考までに)。
有効な設定が<scm>. for connection and developerConnection..<scm>
あるため、scm:checkin は期待どおりに機能しました。
しかし、scm:tag の開始中に次のエラーが発生します。私がやっている何が間違っているのですか?
PS :
1.同じ操作 (scm:checkin および scm:tag)は、他のプロジェクトでも正常に機能します。
2. maven-release-pluginを使用していません
16:05:52 [INFO] --- maven-scm-plugin:1.9.2:tag (default-cli) @ project-parent ---
16:05:52 [INFO] Final Tag Name: '0.0.1'
16:05:52 [INFO] EXECUTING: /bin/sh -c cd /production/jenkins/tools/workspace/ProjectTestApp && hg tag --message 'CM Jenkins - Release plugin auto check-in and creation of release tag = 0.0.1' 0.0.1
18:33:30 [ERROR]
18:33:30 EXECUTION FAILED
18:33:30 Execution of cmd : tag failed with exit code: 255.
18:33:30 Working directory was:
18:33:30 /production/jenkins/tools/workspace/ProjectTestApp
18:33:30 Your Hg installation seems to be valid and complete.
18:33:30 Hg version: 1.9.2 (OK)
16:05:52 [INFO] ------------------------------------------------------------------------
16:05:52 [INFO] BUILD FAILURE
16:05:52 [INFO] ------------------------------------------------------------------------
16:05:52 [INFO] Total time: 7.082 s
16:05:52 [INFO] Finished at: 2014-09-25T16:05:52-05:00
16:05:53 [INFO] Final Memory: 14M/360M
16:05:53 [INFO] ------------------------------------------------------------------------
16:05:53 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:1.9.2:tag (default-cli) on project project-parent: Cannot run tag command : Exception while executing SCM command. Error while executing command tag --message 'CM Jenkins - Release plugin auto check-in and creation of release tag = 0.0.1' 0.0.1 -> [Help 1]
16:05:53 [ERROR]
16:05:53 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
16:05:53 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
16:05:53 [ERROR]
16:05:53 [ERROR] For more information about the errors and possible solutions, please read the following articles:
16:05:53 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
16:05:53 Archiving artifacts
16:05:54 Finished: FAILURE