Commit file from Jenkins workspace to SVN

后端 未结 3 896
面向向阳花
面向向阳花 2021-01-04 12:57

I have a saved project in Subversion repository and compiles it with Jenkins. When I run the build, Jenkins pulls project into workspace directory. I need commit one changed

3条回答
  •  时光说笑
    2021-01-04 13:26

    Please have a look to this answer: Jenkins svn commit post-build

    It should be possible to commit with a new build step (or a post build step).

    But be careful with the SVN layout of the Jenkins workspace. The subversion plugin is using the SVNKit to deal with the SVN commands. Your workspace maybe use the SVN layout 1.6.

    If the SVN client is more recent on your machine, your SVN commit will fail with the following error: org.apache.subversion.javahl.ClientException: The working copy needs to be upgraded svn: Working copy 'C:.... is too old (format 10, created by Subversion 1.6)

提交回复
热议问题