How to Get CodeBuild to Build Develop NOT the PR Branch?

0

Hi, I am trying to setup CodeBuild to build the develop branch that the PR is merged into rather than building the actual PR branch. The reason for this is sometime peoples PR brances don't yet include the develop changes made since their PR was created. Can someone tell me what I need to do in the Source section of CodeBuild in order to achieve this? thanks

질문됨 2년 전1579회 조회
1개 답변
0

In CodeBuild, you can use the source version to specify the branch.

Check these documents for more information: Source version sample with CodeBuild and Create a build project (console)

profile picture
joahna
답변함 2년 전
  • Hi thanks. Yes I do set the source version to develop and that works fine for manually triggered builds, but when I want to automatically trigger my pull requests and to build on various event, I can't figure out how to set that up to build the develop branch when a PR is merged into develop. What seems to happen is that the PR builds but it the PR branch as opposed to the develop branch that it is merging into.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠