我有两个 buildspec 文件:
buildspec.yml
buildspectest.yml
以及两个 Codebuild 操作:
- Actions:
- ActionTypeId:
Category: "Build"
Owner: "AWS"
Provider: "CodeBuild"
Version: "1"
Configuration:
ProjectName: !Ref CodeBuild
InputArtifacts:
- Name: 'SourceArtifact'
Name: "Build"
Region: !Sub ${AWS::Region}
RunOrder: 1
- Actions:
- ActionTypeId:
Category: "Test"
Owner: "AWS"
Provider: "CodeBuild"
Version: "1"
Configuration:
ProjectName: !Ref CodeBuild
InputArtifacts:
- Name: 'SourceArtifact'
Name: "Test"
Region: !Sub ${AWS::Region}
RunOrder: 1
它们都引用了同一个构建项目。他们似乎都在加载buildspec.yml
文件。如何配置要使用的第二个 Codebuild 测试操作和要使用buildspectest.yml
的第一个操作buildspec.yml
?