How to configure a single Jenkins job to make the release process from trunk or branches?

前端 未结 2 1207
被撕碎了的回忆
被撕碎了的回忆 2020-12-04 22:51

I am currently enhancing the release process of our projects on Jenkins (1.430).

Current release jobs

Today, for one specific project, we ha

相关标签:
2条回答
  • 2020-12-04 23:09

    You need version 1.32 of the subversion plugin. The issue JENKINS-10678 was implemented in that version.

    Then you only give it your project URL (which needs to contain trunk, branches, and tags) and it will offer you the trunk together with your branches.

    0 讨论(0)
  • 2020-12-04 23:15

    Just to add some notes to Peter's answer if you are not so familiar with jenkins.

    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" (this project is parametrized in newest versions)
    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:

    0 讨论(0)
提交回复
热议问题