내용으로 건너뛰기

If I select the default branch (e.g., main) in CodePipeline but set the trigger filter to stage-*, which branch will the pipeline deploy—main or a stage-* branch?

0

Here, I'm using a code pipeline for the staging environment. Once the development environment is completed, a dynamic branch is created. The staging pipeline needs to use this dynamically created branch from development. When setting up the staging pipeline, I need to specify a default branch. However, at this point, the dynamic branch hasn't been created yet. So, I set the default branch to 'main' but configured the trigger to filter for branches following the 'stage-*'. My question is: which branch will the pipeline use for deployment – the default branch ('main') or the dynamically created 'stage-' branch?

질문됨 일 년 전286회 조회
2개 답변
2
수락된 답변
  1. With Automatic Triggers: The pipeline will deploy the branch that matches stage-* and triggered the pipeline.
  2. With Manual Triggers: If manually triggered and no specific branch is provided, the pipeline will use the main branch by default.

Thus, in your case, when the stage-* branch is created and triggers the pipeline, the pipeline will deploy that stage-* branch, not the main branch.

AWS
전문가
답변함 일 년 전
전문가
검토됨 일 년 전
0

Thanks for the update

답변함 일 년 전

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

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

관련 콘텐츠