配置 Jenkins 以使用 SVN 分支 [英] Configure Jenkins to work with SVN branches

查看:33
本文介绍了配置 Jenkins 以使用 SVN 分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在设置 Jenkins 以使用 SVN 存储库.目前它适用于主干.现在我想设置 Jenkins 来处理新创建的分支.我不想为 SVN 中的每个新分支手动创建一个新项目.

  • 是否已经有一个解决方案允许使用 SVN 并在 Jenkins 中为在 SVN 中创建的每个分支自动创建作业/任务?
  • 如何将 Jenkins 与 SVN 标签/分支一起使用?

解决方案

如果您不是,请查看我的

I am currently setting up Jenkins to work with SVN repository. Currently it works fine for the trunk. Now I want to set up Jenkins to take care of newly created branches. I don't want to create a new project manually for every new branch in SVN.

  • Is there already a solution which allowes to use SVN and to create jobs/tasks in Jenkins automatically for every brach created in SVN?
  • How do you use Jenkins with SVN tags/branches?

解决方案

Also check my extend answer if you are not very familiar with jenkins.

It provides a step by step solution with screenshots.

The subversion plugin is installed by default in recent versions(as for Sep 2015).

Then you should configure your project as following:

  1. check "This build is parameterized"
  2. choose "List subverion tags (and more)"
  3. in the name field, set a varaiable name which can be referenced later in the svn url. I choose svnbranch here.
  4. in the Repository URL field, give it your project URL (which needs to contain trunk, branches, and tags)
  5. fill other field as your needs
  6. in source code management, reference the variable defined before in your repository url.

check following screenshots:

这篇关于配置 Jenkins 以使用 SVN 分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆