Jenkins svn commit post-build

别等时光非礼了梦想. 提交于 2019-12-22 04:36:13

问题


I'm trying to make a post-build commit in Jenkins CI when it's succeeded.

Is there a way to make this?

My problem is that when i build it generates some dll's in the workspace that i need to commit to the svn.


回答1:


It depends on the build technology (e.g. Ant, Maven, MSBuild or FianlBuilder) you use for building your source code. To check-in your build results into your svn, you should add some new steps at the end of your build scripts. This step will simply add your build results to svn. For example your step may contain:

svn commit --file build-output.1 build-output.2

It should be noted that some build technologies are equipped with build-in tasks or actions for working with svn.



来源:https://stackoverflow.com/questions/7104849/jenkins-svn-commit-post-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!