我已经为.Net项目创建了aws代码构建,它可以正常工作,但是没有生成任何输出,如何获得此代码构建的输出?

问题描述 投票:0回答:1

我在.net中有这个项目,存储库在GIT中,我已经定义了代码构建,它的构建项目没有任何问题,但是没有生成任何输出?在哪里可以找到可部署到AWS lambda的输出?以下是我的构建yml。版本:0.2

#env:
  #variables:
     # key: "value"
     # key: "value"
  #parameter-store:
     # key: "value"
     # key: "value"
  #git-credential-helper: yes

phases:
  install:
    #If you use the Ubuntu standard image 2.0 or later, you must specify runtime-versions.
    #If you specify runtime-versions and use an image other than Ubuntu standard image 2.0, the build fails.
    runtime-versions:
       dotnet: 2.2
      # name: version
    #commands:
      # - command
      # - command
  #pre_build:
    #commands:
      # - command
      # - command
  build:
    commands:
      dotnet build GoTaskmeAPI_AWS.sln  --configuration  Release
      # - command
  #post_build:
    #commands:
      # - command
      # - command
#artifacts:
# files:
 #   - /*
    # - location
  #name: $(date +%Y-%m-%d)
  #discard-paths: yes
  #base-directory: location
#cache:
  #paths:
    # - paths
amazon-web-services aws-codebuild
1个回答
0
投票

您是指构建日志吗?如果是,则似乎您尚未为构建项目启用CloudWatch日志。

在您的构建项目下,转到编辑>日志,然后选中“ CloudWatch日志-可选”框。再次运行构建,看看是否有帮助。我假设CodeBuild Service角色已经具有写入CloudWatch的必需权限。

© www.soinside.com 2019 - 2024. All rights reserved.