Use Hudson to build a specific git commit

前端 未结 7 854
南笙
南笙 2020-12-13 13:11

I have a hudson build server. The source code is managed by a git repository. For each build the latest version is checked out and compiled. Now i\'d like to tell hudson to

7条回答
  •  暖寄归人
    2020-12-13 13:28

    I'm not sure about Hudson, but Jenkins' Git Plugin has an "Advanced..." button at the right just above the "Repository browser" field. Clicking there reveals a lot of additional options, one of them being "Checkout/merge to local branch (optional)". Its help text says "If given, checkout the revision to build as HEAD on this branch. Please note that this has not been tested with submodules", so that seems to be what you have in mind.

提交回复
热议问题