0
我最近創建了一個自動化流程來爲我的組織運行多步驟Maven構建。但我有困難提交svn上的版本更改Jenkins svn分支
我想更新此文件內容並編譯我的代碼,然後將此文件提交回svn。所以SVN有最新的版本號。
如何將更改後的文件提交給SVN。
非常感謝。
我最近創建了一個自動化流程來爲我的組織運行多步驟Maven構建。但我有困難提交svn上的版本更改Jenkins svn分支
我想更新此文件內容並編譯我的代碼,然後將此文件提交回svn。所以SVN有最新的版本號。
如何將更改後的文件提交給SVN。
非常感謝。
我調用頂級Maven的目標在SVN發佈: 我的目標是:釋放:執行-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
你有什麼困難? – bahrep
我不知道如何使用jenkins製作我的項目的新版本並上傳到svn –
簡而言之,我想修改我的工作區路徑或將項目從jenkins工作區複製到svn repo ... –