问题描述
成功后,我正在尝试在Jenkins CI中进行构建后提交.
I'm trying to make a post-build commit in Jenkins CI when it's succeeded.
有没有办法做到这一点?
Is there a way to make this?
我的问题是,当我构建它时,它会在工作区中生成一些我需要提交给svn的dll.
My problem is that when i build it generates some dll's in the workspace that i need to commit to the svn.
推荐答案
这取决于您用于构建源代码的构建技术(例如Ant,Maven,MSBuild或FianlBuilder).要将生成结果检入到svn中,应在生成脚本的末尾添加一些新步骤.这一步只会将您的构建结果添加到svn中.例如,您的步骤可能包含:
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
svn commit --file build-output.1 build-output.2
应该注意,某些构建技术配备了用于处理svn的内置任务或动作.
It should be noted that some build technologies are equipped with build-in tasks or actions for working with svn.
这篇关于Jenkins SVN提交构建后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!