2017-08-10 12 views
0

私は最近、自分の組織にマルチステップMavenビルドを実行する自動プロセスを作成しました。しかし、私はsvnでバージョンの変更をコミットするのに苦労しているJenkins svn branches

私はこのファイルの内容を更新し、私のコードをコンパイルして、このファイルをsvnにコミットしたいと思います。そのため、SVNには最新のビルドバージョン番号があります。

この変更されたファイルをSVNにコミットする方法を教えてください。

Ty

+0

あなたはどんな困難を抱えていますか? – bahrep

+0

jenkinsでプロジェクトの新しいバージョンを作成してsvnにアップロードする方法が分かりません –

+0

つまり、私は自分のワークスペースのパスを変更したり、プロジェクトをjenkinsワークスペースからsvn repoにコピーしたいのです... –

答えて

0

私はSVNでリリースするトップレベルのMavenの目標を呼び出す: 私の目標は次のとおりです。リリース:-DconnectionUrl = SCMを実行します。SVN:http://XXX

これはジェンキンスの私のMavenのエラーです:

[maven] $ cmd.exe /C "D:\apache-maven-3.5.0\bin\mvn.cmd release:perform -DconnectionUrl=scm:svn:http://10.10.20.151/svn/repos/aubay/test/jenkins/branches && exit %%ERRORLEVEL%%" 
channel stopped 
[INFO] Scanning for projects... 
[INFO] 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building jenkins 0.0.1-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- maven-release-plugin:2.3.2:perform (default-cli) @ jenkins --- 
[ERROR] Cannot perform release - the preparation step was stopped mid-way. Please re-run release:prepare to continue, or perform the release from an SCM tag. 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 3.199 s 
[INFO] Finished at: 2017-08-24T15:48:29+02:00 
[INFO] Final Memory: 12M/150M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:perform (default-cli) on project jenkins: Cannot perform release - the preparation step was stopped mid-way. Please re-run release:prepare to continue, or perform the release from an SCM tag. -> [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/MojoFailureException 
Build step 'Invoke top-level Maven targets' marked build as failure 
Finished: FAILURE 
関連する問題